Hi everyone!

We are having problems getting access to schema annotations using Xerces-J.
The following code snipplet returns a null value for
schema.getAnnotations():

Element root = document.getDocumentElement();

// retrieve PSVI for the root element
ElementPSVI rootPSVI = (ElementPSVI)root;
// retrieve the schema used in validation of this document
XSModel schema = rootPSVI.getSchemaInformation();
if (schema != null){
      System.out.println("schema.getAnnotations(): " +
schema.getAnnotations());
} else {
        System.out.println("schema == null");
}

The XML file and the schema we are using for our tests are accepted as valid
documents by the DOM parser. Has anybody had similar problems? Has somebody
out there got a solution? Any help is welcome!

Thank you very much in advance!

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to