Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It would be nice to be able to grab a DOM for the XmlSchema object. Currently, there are "XmlSchema.write(...)" methods that write a stream and there is a "Document[] getAllSchemas()" method to get all the schemas including the imports, but nothing to get a DOM for just that schema.
Two ways to do it:
1) Make the XmlSchemaSerializer constructor public so it can be used directly.
2) Add a Document getSchemaDocument() method to XmlSchema that does:
XmlSchemaSerializer xser = new XmlSchemaSerializer();
xser.setExtReg(this.parent.getExtReg());
return xser.serializeSchema(this, false)[0];
Personally, I'd prefer both.