Link to home
Start Free TrialLog in
Avatar of shiaoyan05
shiaoyan05

asked on

Load XML Unexpected End Of File

Part of my application retrieves query string via a http post. eg, http://a.c.com/app/test.aspx?
qs=<Re><ID>#01</ID><Item>00</Item></Re>

qs =Request.QueryString("str")
........

xmlDoc.LoadXml(qs)
qs is in valid xml form, however i encountered the following error due to the '#' sign which is not a reserved symbol in xml. The process will be ok if i remove the # sign. Pls advise.

Unexpected end of file has occurred. The following elements are not closed: ID..
ASKER CERTIFIED SOLUTION
Avatar of BToson
BToson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shiaoyan05
shiaoyan05

ASKER

Thanks for the tip!