Schema annotations 2003-01-14 - By Dr. Michael Treichel
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: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|