Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-237

Can we warn the user when they are running into the elementFormDefault="qualified" problem

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Version 2.1
    • TBD
    • None
    • None
    • All

    Description

      It is common (and perfectly legal) for users to not include elementFormDefault="qualified" in their schemas and end up with the default value which is "unqualified". But often users don't realize the impact that this has on the requirements for namespace prefixes for local elements when interpreting the instance doc (a common mistake is to put xmlns="XXX" in a global element in the instance doc which then causes the local elements not to be picked up because under elementFormDefault="unqualified" they must have no namespace).

      Is it possible to warn them if we are seeing an instance doc that would fit the schema if elementFormDefault="qualified" was there? (Would need to consider what the perf impacts of this would be too).

      Attachments

        Activity

          People

            Unassigned Unassigned
            ljones Lawrence Aston Jones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: