Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Escape by hand

Hi,
what are my options on manually escaping text and stringing together an
XML-string?

In the GUI (web-page or VB6-gui) data gets entered. Can containg characters
not valid in XML (like <>[]).
By stringing these together into an XML-string these characters doesnt get
escaped. Errors follow promptly.

I have looked for an object containing an "XMLencode"/"XMLdecode" -method.
Is there such?
Or do I have to always use a DOM-object?

/k
[496 byte] By [kurt sune] at [2007-11-9 15:28:11]