[jdom-interest] Problem with xml:lang attribute
Laurent Bihanic
laurent.bihanic at atosorigin.com
Tue Jul 1 08:00:51 PDT 2003
Peter Whitham wrote:
> I believe xml:lang is a valid attribute, and should be accepted by JDOM.
From the stack trace, it seems NekoHTML fails to report "xml" as a namespace
(the attribute local name and QName are the same), hence making JDOM believe
the attribute name is actually "xml:lang" (in default namespace) instead of
"lang" in namespace "xml".
SAXBuilder usually sets the following 2 features to true to avoid this problem:
http://xml.org/sax/features/namespaces
http://xml.org/sax/features/namespace-prefixes
Maybe NekoHTML does not support namespaces but accepts setting these properties ?
If that's the case, switch to Xerces!
Laurent
More information about the jdom-interest
mailing list