Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Illegal Characters For XML

Status
Not open for further replies.

jbl1167

Programmer
Oct 2, 2006
78
US
I need to write a piece of code able to get a text file and generate an XML file from it. I am ok generating tags and with the structure but I need help in validating against illegal characters. Do anyone have a list of the characters that are not valid. I do know that the ampersand is not legal but I know that there are ranges of Ascii characters that are not. Could you please help me on this?

Thank you
 
Legal characters of any parsed entity of xml v1.0 are defined in the section 2.2 of the spec.
To blow some life to the dry spec of that concern by contrasting it with the badly-loved xml v1.1, checking out the same section in the latter's spec.
which excludes less than v1.0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top