XML character escaping not working?

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1482
Joined: Fri Aug 29, 2003 8:39 pm

XML character escaping not working?

Post by ^rooker »

[PROBLEM]
In some programming language I created an XML file and wanted to write a value containg "<>" chars.

This: <any> should be (of course): <any>
but it wasn't


[SOLUTION]
(and that's why I'm actually posting it here at all:)

Look at the SOURCECODE of the XML - and do NOT rely on the view your favorite browser is giving you. Your browser is probably so nice and will un-escape the characters for you. :D
Post Reply