I have a question for XML document special chars, I’m using & in on of the value of the item in XML and TXMLDoc Delphi parser is complaining about it.
I search for some XML parsing options but none of them concerning special chars,
any ideas?
Example:
<Configuration>
<Configuration_item>
<view_name value="some view & name"/>
....
Regards,
Mika
Use
&to represent an ampersand. The reason you need to do this is because & is a special character in XML – specifically, the character used to indicate the start of an XML entity, which is used to specify characters in the content that would (ironically) otherwise be special/complex characters.Other common XML entities:
"<(short for less-than)For more info:
http://www.xml.com/pub/a/2001/01/31/qanda.html