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

Attach Schema Target Namespace to XmlSchemaAny

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Labels:

      Description

      While I was working on AVRO-457, I found it was difficult to determine the XML Schema's target namespace when I encountered an XmlSchemaAny. This is needed because the XmlSchemaAny's namespace could be ##targetNamespace (the element must match the target namespace) or ##other (the element must be in any namespace other than the target namespace), so it was difficult to confirm whether the element matched the wildcard.

      This change adds a "targetNamespace" field to XmlSchemaAny, and has XmlSchemaBuilder attach XmlSchema.getLogicalTargetNamespace() to it. I believe that is the best fit.

      Thanks!
      Mike

        Attachments

        1. diff_any.zip
          1.0 kB
          Michael Pigott

          Issue Links

            Activity

              People

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                rpimike1022 Michael Pigott
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: