xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Tatu Saloranta <cowtowncoder AT yahoo.com>
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] problems with "ä"
- Date: Mon, 22 Oct 2007 10:51:31 -0700 (PDT)
You should send sample documents as attachments -- otherwise it is likely to
get garbled or modified when you cut'n paste the sample. But I suspect you
really are using ISO-8859-x (Latin-x, like Latin-1) here, like Elliotte
suggested, not UTF-8 like xml declaration claims. Represenation of a with
umlauts differs between ISO-8859-x and UTF-8 encodings: in former all
characters that can be represented are single byte ones, in latter this
particular character would have to be 2 byte sequence.
And that is probably causing your problem, not Xerces or XOM.
Hope this helps,
-+ Tatu +-
----- Original Message ----
From: Luca Passani <passani AT eunet.no>
To: elharo AT metalab.unc.edu
Cc: xom-interest <xom-interest AT lists.ibiblio.org>
Sent: Monday, October 22, 2007 5:41:18 AM
Subject: Re: [XOM-interest] problems with "ä"
Elliotte Harold wrote:
>
>
> The exception is being thrown deep in Xerces, so I expect the
document
> is indeed malformed. If it's XOM code that's creating the document,
> there could be a bug there. Do you have that code for someone to look
at?
>
here is the malformed document.
<?xml version="1.0" encoding="UTF-8"?>
<wurfl>
<contributor name="Ville Skyttä" email="ville.skytta AT steam.fi"/>
</wurfl>
and here is the code:
Builder parser = new Builder();
Document doc = parser.build(filename);
should be enough to reproduce the problem. (BTW, this is XOM 1.0. Not
sure if this makes a difference)....
Thanks
Luca
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
[XOM-interest] problems with "ä",
Luca Passani, 10/22/2007
- Re: [XOM-interest] problems with "ä", Grzegorz Kaczor, 10/22/2007
-
Message not available
-
Re: [XOM-interest] problems with "ä",
Luca Passani, 10/22/2007
- Re: [XOM-interest] problems with "ä", Elliotte Harold, 10/22/2007
-
Re: [XOM-interest] problems with "ä",
Luca Passani, 10/22/2007
- <Possible follow-up(s)>
- Re: [XOM-interest] problems with "ä", Tatu Saloranta, 10/22/2007
Archive powered by MHonArc 2.6.24.