[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX Locator vs {start,end}Entity
> >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. Why not store the entity declarations in a hash table, hashed by name? Karl
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|