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

A new XML parser


new xmlparser
I'm working on developing a new style of XML parser.  I've created an 
initial proof of concept implementation (in Java), and I'd be grateful for 
feedback on it.

My idea is to create a single high level, DOM-like API which is suitable 
for both streaming and in-memory parsers.  I believe this design has 
several advantages over existing parsers:

- It's much easier to use than other streaming parsers like SAX or StAX, 
since you get to work with a high level, object oriented representation of 
the XML content.  It's very similar to existing DOM APIs.  The only 
restriction is that, if you're using a streaming parser, you're required 
to access the nodes in the order they appear in the file.

- Switching from an in-memory parser to a streaming parser (or vice versa) 
is much easier than it would be with any other two parsers, because both 
of them use exactly the same API.  You can even choose which parser to use 
at runtime (based on the file size, or example, or how many passes you'll 
need to make through it).

- Many utilities can be written once, then used with either parser.

You can find a document giving more details on the motivation and design 
of the parser at

http://drizzle.stanford.edu/~peastman/pax.html

and the current implementation at

http://drizzle.stanford.edu/~peastman/pax.zip

All source code is included, and is in the public domain.  Thanks for your 
feedback!

Peter

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.