This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

encoding="iso-8859-1"


Hi,

I have a query. Suppose I write out the following XML as a little file.
<?xml version="1.0" encoding="iso-8859-1"?><somenews><section
id="1"><text>Fred drank milk</text></section></somenews>

If, I load this into the MXSML DOM in an ASP script as follows:
xmlObj.Load("tiny.xml") - I have no problems. The DOM can handle it, and I
can manipulate it.


If, however, I load this into the DOM like this:

xmlObj.LoadXML("<?xml version=""1.0""
encoding=""iso-8859-1""?><somenews><section id=""1""><text>Fred drank
milk</text></section></somenews>")

I get the following error code: "Switch from current encoding to specified
encoding not supported. errorcode : -1072896657"
Anyone know a way to work around this?

Please email me direct at roland@dunn.co.uk as well as to the mailing list.


Many thanks,
Roland.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]