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

xsi:type is not applied to root element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2, 3.2.0
    • None
    • 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.xml
          0.2 kB
          Alberto Massari
        2. test.xsd
          0.2 kB
          Alberto Massari

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: