Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to retrieve the xml encoding from the schema
How to retrieve the xml encoding from the schema [message #602593] Wed, 05 September 2007 15:07
TG is currently offline TGFriend
Messages: 3
Registered: July 2009
Junior Member
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
Previous Topic:Iona add support for eCore annotations
Next Topic:How to retrieve the xml encoding from the schema
Goto Forum:
  


Current Time: Sun Dec 21 21:35:19 GMT 2014

Powered by FUDForum. Page generated in 0.01541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software