Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-411

Add ability to get a DOM for the XmlSchema object

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • XmlSchema 1.4.3
    • XmlSchema
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: