> PSVI only seems to give me information back about elements that exist in
> the document instance.  It won't tell me anything about elements that
> exist in the schema but aren't in the particular document instance I've
> parsed.

On the root element, there is a PSVI property called [schema information]
(please refer to the schema spec part 1 3.15.5). This property has
information about the schema that's used for the validation.

On the PSVI API (org.apache.xerces.xni.psvi), there is method
"getSchemaInformation" defined on ElementPSVI interface, which returns an
XSModel. From XSModel (org.apache.xerces.impl.xs.psvi), you can get access
to various schema components.

HTH,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]


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

Reply via email to