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..
shiaoyan05Asked:
Who is Participating?
 
BTosonConnect With a Mentor Commented:
This is occurring due a value in a url followed by a # indicates a link to an anchor on the page.
If you examine your actual query string received by ASP.NET, you will notice that anything after and including the hash character will not be sent by the browser.
0
 
shiaoyan05Author Commented:
Thanks for the tip!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.