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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] SAX Locator vs {start,end}Entity

[ Lists Home | Date Index | Thread Index ]

>But why can't you achieve that by looking at the systemId() of the
>Locator when startElement is called?

I could keep a stack of the locator's system ID for all elements, and
compare it with the top of stack for each element - if it's different,
there must have been an entity boundary - but it would be more
efficient to notice start and endElement events.  It looks as if it
will be best to notice the events, but delay finding the system ID
until an element start occurs.

-- Richard




 

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

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