[XOM-interest] org.w3c.dom.Document.getXmlEncoding() alternative inXOM

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu Dec 11 13:44:01 EST 2008


Subhash Chandran wrote:
> Thanks Elliotte :-) We did using Stax:
> 
> http://code.google.com/p/rest-client/source/browse/trunk/src/main/java/org/wiztools/restclient/xml/XMLUtil.java?spec=svn345&r=345
> 
> See the function `getDocumentCharset(final File f)'.
> 

Have you tested that? When I tried to get something similar working with 
StAX those pieces just didn't work. Maybe you're using a different 
parser than I was.

-- 
Elliotte Rusty Harold
elharo at metalab.unc.edu


More information about the XOM-interest mailing list