[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAXPP / fragment processing

  • From: Paul Miller <stele@f...>
  • To: xml-dev <xml-dev@i...>
  • Date: Thu, 23 Dec 1999 20:43:59 -0500

fragment processing is
> > written a C version; I'm stuggling with defining interfaces
> > for a Java version.

> Ups, meanwhile I have the thing working... Maybe we can harmonize the
> interfaces, you'll find my suggestion
> http://www.trantor.de/saxpp/doc

My design is somewhat different. You can see how it works in the list
archives (or check out the sample C++ code at
http://www.fxtech.com/xmlio/. Basically you register interest in certain
elements, and can specify a callback for each, where you can then
register new handlers for the sub-elements at that scope, and so on. You
can also register element handlers for intrinsic types (such as ints,
lists, booleans, strings, floats, etc) where it just plugs the
(validated) value into your own data structures. More of an XML
interpreter than a parser (as Clark pointed out to me). The nice thing
about my design is it consumes no additional memory over the buffering
(which is independent of the reader through a stream interface anyway).
It doesn't actually process any elements that there is no handler for,
so it can quickly skip large chunks of a document (that you are not
interested in) without consuming any memory or generating any events.

I'll have more details (and a completely "C" implementation) next week
when I return from Florida.

-Paul

--
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...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.