[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

UTF-8 Byte Order Mark giving problems

Subject: [xsl] UTF-8 Byte Order Mark giving problems
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Fri, 19 Nov 2004 06:50:37 +0100
utf 8 byte order mark
Hi all,

This is perhaps a bit off-topic, but I can't believe none of you has noticed this before. I'm using a Java 1.4.1 distribution (including Xalan 2.5.1?) and am reading an XML document with a DocumentBuilder object through the parse method. This works okay.

However, when the XML document is UTF-8 *and* includes a UTF-8 Byte Order Mark (first three bytes EF BB BF), than the parse method simply breaks with an obscure message that the document element could not be found.

Has anyone noticed this as well? If so, is there a solution?

I've written a FilterInputStream that cuts these first three bytes out, but there has got to be a nicer solution...

Thnx,
Geert

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.