Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1937

xsi:type is not applied to root element

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2, 3.2.0
    • Labels:
      None
    • Environment:
      Visual Studio 2005, Windows XP SP3

      Description

      Validating the attached sample using "saxprint -n -f -s test.xml" reports

      Error at file c:\testcase\ivan.xml, line 4, char 45
      Message: no declaration found for element 'p'

      even if the schema contains the 'p' element. However, if the root element lists xsi:type after the xsi:noNamespaceSchemaLocation attribute, the sample works.

        Attachments

        1. test.xsd
          0.2 kB
          Alberto Massari
        2. test.xml
          0.2 kB
          Alberto Massari

          Activity

            People

            • Assignee:
              amassari Alberto Massari
              Reporter:
              amassari Alberto Massari
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: