Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XMLResource load options
XMLResource load options [message #397577] Wed, 21 December 2005 16:46 Go to previous message
Mike Heckman is currently offline Mike HeckmanFriend
Messages: 2
Registered: July 2009
Junior Member
If I have incoming XML with no schema information in the root element
(i.e., no xlmns, xsi, or schemaLocation values), can I set load options
that specify the values to be used? I've tried the following without
success:

res.getDefaultLoadOptions().put(XMLResource.XML_NS,
"http://ACORD.org/Standards/Life/2");
res.getDefaultLoadOptions().put(XMLResource.XML_NS,
XMLResource.XML_SCHEMA_URI);
res.getDefaultLoadOptions().put(XMLResource.XSI_NS,
XMLResource.XSI_URI);
res.getDefaultLoadOptions().put(XMLResource.SCHEMA_LOCATION,
"http://ACORD.org/Standards/Life/2
C:\stp_workspace\stprocessing\xsd\TXLife2.12.01.xsd");
 
Read Message
Read Message
Read Message
Previous Topic:Navigate through the model
Next Topic:xsd -> non-unsettable primitive
Goto Forum:
  


Current Time: Sat Apr 27 00:56:12 GMT 2024

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

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

Back to the top