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

Re: XML too hard for programmers?


html streaming push
At 4:43 PM +0100 3/17/03, Robin Berjon wrote:


>In fact, there has been some work within the Perl community to 
>address the problems that programmers evidently face when using the 
>dominant SAX/DOM/XPath/XSLT combo.

I strongly suspect that a large part of the problem is that exactly 
none of these were designed with Perl in mind. As DOM has shown 
beyond any doubt, cross-language APIs are a disaster that satisfy no 
one. Interoperability needs to be achieved at the XML level, not the 
API level. I don't care which API or language you use to process your 
XML documents as long as I can send you XML and receive XML back.

There are a few general types of APIs (tree-based, streaming pull, 
streaming push, data binding) and these types have different 
strengths and weaknesses. The most generic experiences with such APIs 
may cross language boundaries (e.g. use a streaming API when 
documents are very big relative to memory) but anything beyond that 
is misdirected effort. SAX is a good Java API. It is not a good Perl 
API, and Perl should not slavishly imitate it. Instead, the Perl 
community should develop their own streaming push API (If indeed 
that's what they need. Perhaps they'd prefer a pull API as Bray 
suggests.) that adheres to Perl's conventions and builds on Perl's 
strengths. Ditto for Python, C, C++, Eiffel, and so forth.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

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.