Hi Ajay, ajay bhadauria <[EMAIL PROTECTED]> wrote on 11/07/2008 03:17:21 PM:
> Michael, > > Thanks for response and explanation. > > But can we use current-element-node property which could be set to > javax.xml.validation.Validator using setProperty and we get the node > which is in error during validation? The current element node is the current element being visited by the validator. It's not necessarily where the error is located though often is. I suggested querying this property in your error handler because it's the best approximation available from the validator at that point. > Once we get the node and then with getParaentNode recursively > and get the complete xpath ? That will give you an XPath for the current element node, but not necessarily an XPath which points to the location of the error which was reported. This certainly never works for attributes. > Regards > Ajay Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED]