Hi all,

Now the full PSVI information can be retrieved from XNI augmentation.

>From within an XMLDocumentHandler (DOM/SAX parsers, for example), one can
1. Get an ElementPSVI from the XNI augmentation of the validation root
(normally the root element);
2. Get XSModel from it by calling ElementPSVI#getSchemaInformation();
3. Get a list of XSNamespaceItem by XSModel#getNamespaceItems();
4. From each XSNamespaceItem, get its target namespace, components of that
namespace, and document locations that contribute to that namespace.

There are things that need to be revisited:
1. Method names: getIsXXX.
2. How to represent annotations.
3. How to represent a document information item (the [document] PSVI
property "http://www.w3.org/TR/xmlschema-1/#sd-document";).

Future plans:
- Convert preloaded grammars to XSModel, so that users can examine schema
components in preloaded grammars;
- Provide PSVI via DOM (possibly controlled by a feature)

Cheers,
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