Skip to main content

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,
// parse the doc..
XSDResourceImpl xsdResource = (XSDResourceImpl) resourceSet

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

Previous Topic:Iona add support for eCore annotations
Next Topic:How to retrieve the xml encoding from the schema
Goto Forum:

Current Time: Fri May 25 18:30:59 GMT 2018

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

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

Back to the top