[Asterisk-Dev] Manager XML
Colin Anderson
ColinA at landmarkmasterbuilder.com
Tue Mar 1 14:10:45 MST 2005
>However, you are going to need to add a function to take a string value
>and XML-escape it, so that it doesn't contain characters that must be
>entities in XML. These include:
Just do your opening tag like this:
<?xml version="1.0" encoding="iso-8859-1" ?>
the "Encoding" part takes care of 90% of those issues for you, most XML
parsers will have no problem with this. Ran into the same issue when I was
doing an XMLRPC implementation to transmit purchase orders to a business
partner. Our database had loads of those "illegal" chars and adding the
"encoding" part took care of it.
At least, using MSXML-DOM.
hth
More information about the asterisk-dev
mailing list