Hi Lars,
    I think it is possible with Xerces to get validation details you
are seeking via PSVI objects.

If you look at,
http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/ElementPSVImpl.html

you may for example use the getValidity() method of "ElementPSVImpl"
to know if the element was determined to be valid or invalid after the
validation episode.

On Fri, Aug 20, 2010 at 2:43 PM, ZagZig <powe...@web.de> wrote:
> Thanks a lot Mukul. The problem is that the validation is on server side and
> if an element is missing or not valid, then i want to send a response to the
> client, that the element xy isn't valid. But if there is no way to get the
> element name by the sax exception i'll maybe parse the element by the line
> and column number out of the xml and send this and the exception back as the
> result.
>
> Best regards,
> Lars.



-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to