Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] problems with "ä"

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Tatu Saloranta <cowtowncoder AT>
  • To: xom-interest AT
  • 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>
To: elharo AT
Cc: xom-interest <xom-interest AT>
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
> 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

here is the malformed document.
<?xml version="1.0" encoding="UTF-8"?>
<contributor name="Ville Skyttä" email="ville.skytta AT"/>

and here is the code:

Builder parser = new Builder();
Document doc =;

should be enough to reproduce the problem. (BTW, this is XOM 1.0. Not
sure if this makes a difference)....



XOM-interest mailing list
XOM-interest AT

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Archive powered by MHonArc 2.6.24.

Top of Page