Hi,
is there any other way you may know to do that trick? Maybe a other api.
thanx,
kris.
Michael Glavassevich schrieb:
Hi,
There is no API in Xerces which exposes this information. There may be
some creative way to get to it by digging deep into the internals but
that's not supported an
Hi,
There is no API in Xerces which exposes this information. There may be some
creative way to get to it by digging deep into the internals but that's not
supported and you may find your code doesn't work (or compile) with future
releases.
Thanks.
Michael Glavassevich
XML Parser Development
IBM
Ok, there is no implementation for DOM Level 3 Validation. But when I parse a
document and there is an error the message tels me exactly what element,
attribute or value is expected at this point of a document. The only thing I
want is to get this info before an validation exception is thrown. Is
Yes, we're aware of this API. It has come up in discussion at least a few
times on this list. There's been very little interest in having an
implementation in Xerces. There are no plans to implement it.
I have not heard of alternatives or any implementations of DOM Level 3
Validation that are gene
I've been searching for something helpful and I've found DOM Level 3
Validation: http://www.w3.org/TR/DOM-Level-3-Val/validation.html I think it
is very useful feature and it is exactly what I want. But there is no
implementation in Xerces for this interfaces. Does anyone know something
similar to
One possible raw approach is using the
org.apache.xerces.parsers.XMLGrammarPreparser for parsing the schema.
You can will get a XSGrammar. Then use the toXSModel() to get a XSmodel.
Now find the possible root elements from the global element
declarations:
XSNamedMap elementDeclarations = xsMo