How to retrieve the xml encoding from the schema [message #602593] |
Wed, 05 September 2007 11:07 |
Eclipse User |
|
|
|
Hi all,
I need to get the XML encoding from the loaded Schema, we set XSD_TRACK_LOCATION to true prior to parsing i.e.
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getLoadOptions().put(XSDResourceImpl.XSD_TRACK_L OCATION,
Boolean.TRUE);
// parse the doc..
XSDResourceImpl xsdResource = (XSDResourceImpl) resourceSet
.getResource(schemaURI,true);
XSDSchema x = xsdResource.getSchema();
However, the following always returns null
String encoding = x.getDocument().getXMLEncoding();
Does anyone know how to get the xml encoding from the schema ?
Many thanks in advance
Tony
|
|
|
Powered by
FUDForum. Page generated in 0.04429 seconds