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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the best way to handle html tags like <br> in xml

Status
Not open for further replies.

Kazzy

Programmer
Jul 21, 2003
20
0
0
US
What is the best way to handle html tags like <br> in xml. I have around 1000 files in xml that contains html tags or if you can point some links will be great ...Thanks
 
You need to encode the angle brackets so that the XML can handle them (since they are reserved characters in XML).

[tab]<[tab]&lt;
[tab]>[tab]&gt;

Chip H.

____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
I was trying Server.HTMLEncode However it is not working. I am not sure how to encode the angle brackets. can this be done at the xsl level or on my asp.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top