You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Maitreyee Pasad <pa...@gst.com> on 2002/08/14 22:12:47 UTC

RE: Help in Validation with schema

Maintain a stack of elements as you navigate them. This will work whether you use a DOM Parser or a stack parser, the code to
maintain the stack will differ though.

Maitreyee


-----Original Message-----
From: Ragunath Marudhachalam [mailto:rmarudhachalam@circuitvision.com]
Sent: Wednesday, August 14, 2002 4:28 PM
To: xerces-j-user@xml.apache.org; tomw@panscopic.com
Subject: Help in Validation with schema


Hi All,

In my application, i need to parse a xml document against a schema and give
back the error messages, if any. So far i'm able to do that.

But when giving back the error message, right now by using sting
manipulation, i am getting the element name where the error has occured. But
i do need to get the whole hierarchy of that element like, if we have a xml
doc like,

<a>
	<b>
		</c>
	</b>
</a>

and if i have the error in element 'c',
i should get the whole hierarchy.. is is possible by any chance??

PS: the element 'c' can be in some other place in the same document.

Thanks for your help and time...


Ragu
CircuitVision


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


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