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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ultra New Beginner

Status
Not open for further replies.

yazterfari

Programmer
Joined
Apr 29, 2003
Messages
1
Location
GB
I am having problems opening an xml file. Within the data string I have the character '&' indicating the word 'and', I cannot replace the charcter because i need to match it to a list

How can I maintain the '&' within the data string??

 
bad luck, it's one of the two strictly illegal characters in XML (the other one is &quot;<&quot;)
you have to replace it with it entity reference &.a.m.p.; (remove the dots ... i had to add them else html interprets this as &)
or you have to declare it's in a CDATA section - so it won't be parsed
doc on this ca nbe found at for more details
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top