So I have this XML doc:
-
http://www.mysite.com/page?id=1
As you provide it, the XML is well formed. You don't have anything to escape in it. Maybe you have encoding problems in your source file. For information, the 2 characters you must escape in XML are :
& in &
< in <
Characters you may escape in attributes values (depending on the syntax you use for attributes : attr='value'
or attr="value"
) :
" in "
' in '
Depending on the context, the last character that can be escaped :
> in >