Add ability to get a DOM for the XmlSchema object
-------------------------------------------------

                 Key: WSCOMMONS-411
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-411
             Project: WS-Commons
          Issue Type: Improvement
          Components: XmlSchema
            Reporter: Daniel Kulp



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.  :-)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to