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

Different parsing model/API

  • To: xml-dev mailing list <xml-dev@l...>
  • Subject: Different parsing model/API
  • From: Rich Salz <rsalz@d...>
  • Date: Mon, 03 Nov 2003 16:34:11 -0500
  • User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507

parsing model
Jef Poskanzer (of PBM, etc., fame) has an XML parsing model that I 
haven't seen before.  It basically returns you the element text, but 
with the stack of pending elements along with it.  It's amenable to 
streaming, and avoids the common bookkeeping that SAX requires you to 
do.  Written in C++, some templates, BSD-style open source license. From 
his header file:
// The idea here is to parse the document on the fly, like SAX, but the
// only type of data returned is text, i.e. the stuff between all the
// markup elements.  The trick is that the text strings come with a list
// of elements attached (and each element has a (name,value) map of
// attributes).  The parser keeps track of the stack of elements currently
// in effect, instead of making every application do it.  Self-closing
// elements ("<foo bar=bletch /foo>") return an empty string with the
// element list attached.

See http://www.acme.com/software/XIP/ for the code.
	/r$

-- 
Rich Salz, Chief Security Architect
DataPower Technology                           http://www.datapower.com
XS40 XML Security Gateway   http://www.datapower.com/products/xs40.html
XML Security Overview  http://www.datapower.com/xmldev/xmlsecurity.html


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.