[jdom-interest] document encoding
Jason Hunter
jhunter at acm.org
Mon Jul 2 13:37:49 PDT 2001
Andy Clark wrote:
>
> Jason Hunter wrote:
> > SAX doesn't report the encoding, unfortunately.
>
> Xerces2 reports the auto-detected encoding of all entities
> (including the document) as well as the specified encoding
> in the XMLDecl/TextDecl through the Xerces Native Interface
> (XNI). So while we can't push that information out through
> DOM or SAX (or JDOM for that matter), you can access that
> info if you program straight to XNI (or just extend the
> DOMParser or SAXParser to catch that information).
It would be very valuable to have a builder based on XNI, to provide the
extra features missing in SAX and probably to gain a little speed boost
by not going through the SAX layer. Andy, do you think X2 is far enough
along to start an XNI builder effort?
Anyone want to volunteer?
-jh-
More information about the jdom-interest
mailing list