Hi Ajay, There's no reliable way to do that. This topic has come up on the Xerces mailing list several times. See one of my responses here [1].
Thanks. [1] http://marc.info/?l=xerces-j-user&m=107375672210434&w=2 Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] ajay bhadauria <[EMAIL PROTECTED]> wrote on 10/31/2008 11:55:59 AM: > Hi, > > I need help. > > I am doing xml document validation against schema using xalan 2.7.1. > I am providing dom to validate API of xalan 2.7.1. > > So when dcoument validation fails on some element of the xml > document , how do we construct xpath from root element of the > document to the element where error occuurred. > > > Thanks a lot. > > Ajay Bhadauria