|
Re: Question about generation with xsd [message #1835673 is a reply to message #1835669] |
Thu, 10 December 2020 04:19 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Be sure that the resource factory you use to create the resource is the one that's generated. I.e., the one in *.xyz.util.XyzResourceFactoryImpl with a method like this: @Override
public Resource createResource(URI uri)
{
XMLResource result = new XyzResourceImpl(uri);
result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
return result;
}
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03260 seconds