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

Re: DOM or SAX: Sense and Sensibility


tcl sax

PaulT wrote:
>
> My prediction is that the era of low-level
> lexer ( called SAX ) and low-level model
> ( called DOM)  is over and there will be
> soon more high-level bindings on top
> of these low-level APIs (or not on top of them).
>
> I think that asking developers to write all the code
> in terms of SAX or DOM APIs is like asking
> them to write programms in assembly language.

I agree; whenever I use the DOM API the very first
thing I do is to write a wrapper around it to
make it more palatable.  This is why I do most
of my XML processing in Tcl, since linguistic
extension is one of it's strong points.
This:

    element "DIV" {
	element "H2" {
	    text "Title"
	}
    }

is infinitely preferable to this:

    set n1 [dom::document createElement $doc DIV]
    set n2 [dom::document createElement $doc H2]
    set n3 [dom::document createTextNode $doc "Title"
    dom::node appendChild $doc $n1
    dom::node appendChild $n1 $n2
    dom::node appendChild $n2 $n3



> [1] http://www.pault.com/pault/pxml/nxml.html
> [2] Here are two other Brutal XML Bindings
> http://web.co.nz/~grantm/cpan/index.html
> http://www.zope.org/Members/haqa/XMLKit
>
> I appreciate more URLs for brital XML bindings,
> seems not easy to find them ...

Well, there's always the tried and true toolkits from
the SGML world like Balise [1], Omnimark [2], and Cost [3]
(the latter is a Tcl extension, the first two
contain their own programming languages).

Does XSLT count?  Another good one is HaXml [4], the
Haskell XML toolkit.


--Joe English

  jenglish@f...

[1-4]: <URL: http://www.google.com/ >


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.