Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FOR XML problem

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
0
0
PT
Executing a FOR XML clause into SQL Server 2000, returns XML. However all the characters ">" and "<" are represented with codes like "&lt;" and "&gt;". If I then try to load this XML with Microsoft parser (xml.xmldocument.loadXML(), for instance), I will receive an error. IT seems the parser doesn´t know how to interpret those characters.

What can be done?

Thank you.
 
Have you tried using the replace command on your asp ?
Code:
 replace(yourString,"&lt;","<")
 replace(yourString,"&gt;",">")
 
Hi,

I made something like that, however, I think it must exist one simple way of doing that. if XML works with those characters, any class that works with XML shoul interpret that correctly...

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top