[Home] [By Thread] [By Date] [Recent Entries]

  • From: Paul Miller <stele@f...>
  • To: xml-dev <xml-dev@i...>
  • Date: Mon, 06 Dec 1999 09:10:42 -0500

> We tried to keep SAX 1.0 as simple as possible -- how would you
> simplify the following further?
> 
>     public void startElement (String name, AttributeList atts)
>     {
>       // do something!!
>     }

Here is where I have the problem. This leaves an awful lot up to the
application, still, including handling the proper nesting. I would like
to make the actual parsing of elements more "automatic", so when a
certain element is hit, it calls a function with my object pointer where
I can pick up the parsing from there, then drop back out to the
enclosing XML scope and keep going.

Perhaps what I want to do should be built on SAX instead of expat,
though.

--
Paul Miller - stele@f...

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



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member