[Home] [By Thread] [By Date] [Recent Entries]
Robert La Ferla wrote:
Let's say that my database returns this XML unfriendly name that I need to insert into an XML document. Is there a way I can still use attributes yet escape these unsavory characters? What's the most efficient way of solving this? You need to escape the ampersand as &, the double quote as ", the less-than as < and the greater-than as >. Use an API that does the escaping for you, for instance with the .NET framework there is XmlWriter. -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



