Uploaded image for project: 'XmlSchema'
  1. XmlSchema
  2. XMLSCHEMA-39

SchemaBuilder creates invalid attr nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.1
    • None

    Description

      In SchemaBuilder, when an "unknown" attribute contains a ":", it tries to create an xmlns attribute for the prefix so the qname can be parsed later. However, it does so via:

      Attr nsAttr = attrEl.getOwnerDocument().createAttribute("xmlns:" + prefix);
                              nsAttr.setValue(namespace);
                              attrs.add(nsAttr);
      

      which doesn't set the namespace to the xmlns namespace. This causes problems when serializing later.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: