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

Michael Kay mike at saxonica.com
Thu Nov 27 04:14:58 EST 2008


> I recently converted RESTClient ( 
> http://rest-client.googlecode.com/ ) to use XOM from plain 
> DOM. But I am stuck in one method. I used to get the document 
> encoding using:
> 
> org.w3c.dom.Document.getXmlEncoding()
> 
> in plain DOM. After converting to XOM, I am not able to find 
> corresponding API for this. Please help me on this.

Why should you need to know the encoding? After converting to XOM, the
original encoding is no longer of any relevance.

Michael Kay
http://www.saxonica.com/



More information about the XOM-interest mailing list