Page 1 of 1

xml parser

Posted: Thu Jun 18, 2009 12:22 am
by revbackup
why can't the xml parser parse & and symbols like ą ????

it displays an error INVALID CHARACTER when I parse the xml....
what should I do so that I can parse symbols like these?

Re: xml parser

Posted: Thu Jun 18, 2009 3:42 am
by requinix
& is the start of an entity. If the characters coming after it don't make up an entity (there are only a handful in XML proper) then it's invalid XML.
ą has to be encoded properly. For example, the XML data itself could be UTF-8 encoded and the <?xml doc mentions encoding="utf-8".