OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Storing SAX Locator information in DOM tree

[ Lists Home | Date Index | Thread Index ]
  • From: Mike Williams <mikew@o3.co.uk>
  • To: <xml-dev@ic.ac.uk>
  • Date: 02 Dec 1999 08:10:58 +0000

I'm pre-parsing some XML-based web-page templates, and building them into
DOM Documents.  My template-processor takes Document+data as input, and
generates SAX events.

My problem is this: if I detect an error while processing the template
(expected tags are missing, etc.), I have no way of relating this to a
position in the original template-file.  This would obviously be useful for 
my template-authors, so they don't have to re-check entire templates.

I'd really like to store information against each node in the Document,
recording what file it was built from, and where (line/column) the node
started; the SAX Locator information, basically.  Reasonable?  

Is there any way to implement this?

-- 
Mike Williams

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS