RE: MSXML - Processing non standard characters
Just declaring the file's encoding as UTF-8 doesn't make it UTF-8. And it doesn't help to declare the encoding of the XSL file if that isn't the file causing the problem. If you really can't change the XML document, and its encoding parameter doesn't accurately describe its actual encoding, your only recourse is to harass the authors of the offending document until they produce a corrected version. (If the "special characters" you mention are accented vowels, then the document's encoding is probably ISO-8859-1, so its header would need to be <?xml version="1.0" encoding="ISO-8859-1" ?>.) PC2 -----Original Message----- From: Warren Keane [mailto:Warren@xxxxxxxxxxxxx] Sent: August 1, 2001 14:58 To: Xsl-List@Lists. Mulberrytech. Com (E-mail) Subject: MSXML - Processing non standard characters I am trying to transform an HTTP XML document which contains special characters using MSXML. I receive the following error when the transformation occurs: XML Error loading '' An invalid character was found in text content. I have no control over the format of the XML document. The XML document has <?xml version="1.0"?>in the first line. Microsoft's site says: Re-encode the XML data as proper UTF-8. I added the following to my XSL file but it still doesn't work: <?xml version="1.0" encoding="UTF-8" ?> Since I can't change the original XML file, how can I resolve this problem. Any help is appreciated, thanks. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format