You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Mikko Honkala <ho...@tml.hut.fi> on 2001/03/21 18:46:47 UTC

Impossible to get the attribute node of an schema validation error

Hi,

does anybody know if it's possible to get the node where the schema
validation error occurred? The only way, as far as I know, is by:

Node current = ( Node ) parser.getProperty(
"http://apache.org/xml/properties/dom/current-element-node" );

This works, if the error occurs at an element. It does not seem to work, if
the error occurs at an attribute.

I am doing a browser implementation of XForms, and I know the validated XML
is well-formed, but there may be schema datatype errors. And row/column
info, which I get from SAXParseException is not enough.

- Mikko Honkala - http://www.x-smiles.org/



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org