Skip to main content

Is there any way to access Schema Object Model (SOM)?

No replies
Joined: 2003-08-11

I have 2 tasks:

1)For all found errors during standard JAXP DOM validation I want to print my node specific custom error message. It is defined in the Schema xsd file like below:

My custom error message

How can I access node annotation appinfo from the error handler?

2)Using Schema information (In .Net I did it using Schema Object Model) I want to build appropriated DOMDocument.

How can I access Schema information?

If it is possible to do using pure JAXP it will be wonderful. But I see it's rather impossible. So any suggestion (f.g. using xerces) will be appreciated.