You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2008/12/05 22:20:44 UTC
[jira] Created: (WSCOMMONS-411) Add ability to get a DOM for the
XmlSchema object
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.
[jira] Resolved: (WSCOMMONS-411) Add ability to get a DOM for the
XmlSchema object
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved WSCOMMONS-411.
----------------------------------------
Resolution: Fixed
Fix Version/s: XmlSchema 1.4.3
Done.
> 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
> Fix For: XmlSchema 1.4.3
>
>
> 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.