W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2006

locating the invalid element in a large xml document

From: <jneff@tethyshealth.com>
Date: Mon, 16 Jan 2006 12:26:44 -0500
To: xmlschema-dev@w3.org
Message-Id: <S1031119AbWAPR0p/20060116172645Z+28437@ams019.ftl.affinity.com>

Greetings, 

I have a fairly large schema (around 10K lines long) that will be
validating even larger XML documents. 

If the schema validator finds an element which is not valid, it returns
the element name and the error. 

There may be many elements that have the same name who are siblings. 

How can I find out which element in the input data document is the
invalid one? 

Is there a way to include positional information in this error from the
schema validator?  Or maybe generate a unique id for each element in the
input data document and include that id as part of the error. 

Thanks in advance, 

--  

James Neff
Technology Specialist 

Tethys Health Ventures
4 North Park Drive, Suite 203
Hunt Valley, MD  21030 

office:  410.771.0692 x103
cell:    443.865.7874 
Received on Monday, 16 January 2006 19:30:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:52 GMT