[XOM-interest] nu.xom.IllegalNameException with some specific sort of XML documents

Elliotte Harold elharo at metalab.unc.edu
Sat Apr 26 09:29:36 EDT 2008


Ondřej Černoš wrote:
> Hello all,
> 
> I use XOM in Spring-WS as the DOM of choice. I run into an exception
> mentioned in the subject. The offending XML looks like this:
> 
> 
> AbstractXomPayloadEndpoint. is trying to create the Document object
> from the payload part of the document - with PAYLOAD_ROOT as the root
> element of the Document.
> 
> The problem with the XML document is the redefinition of the namespace
> in the payload root subelements. That is the thing that triggers the
> exception.
> 
> Is it XOM bug or spring's incorrect XOM usage?
> 

I'm not sure but I suspect the latter. Any chance you could provide a 
complete, self-contained sample that reproduces the bug so I could look 
into this?

Based on the stack trace it looks like the error may involve code that 
converts DOM to XOM, since they handle namespaces quite differently.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the XOM-interest mailing list