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

XML schema validation doesn't seems to work in samples

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • Samples/Tests
    • None
    • Redhat Linux ES 2.1
      Xerces-C++ build from sources

    Description

      My goal is simply to find a XML file validation against a given xml schema.

      While trying to use StdInParse of SAXPrint using the samples, here's what I got :

      ==-
      [thierry@recette data]$ /opt/src/xerces-c-src_2_6_0/bin/StdInParse -v=always < personal-schema.xml

      Error at (file stdin, line 3, char 11): Unknown element 'personnel'

      Error at (file stdin, line 3, char 22): Attribute 'xmlns:xsi' is not declared for element 'personnel'

      Error at (file stdin, line 4, char 35): Attribute 'xsi:noNamespaceSchemaLocation' is not declared for element 'personnel'
      ==-

      Strace-ing the StdInParse tells me the program didn't even tried to load the schema file...

      Surely i'm doing something wrong, but I really can't see what..

      Thanks for the help.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmallard Thierry Mallard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: