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

Re: XML-aware programming language?


programming languages for soa
John Cowan wrote:

>Burak Emir scripsit:
>
>  
>
>>But, to process XML in a program, you can never do without the tree view.
>>    
>>
>
>That's simply not true.  The applications I support do significant
>XML processing with fgrep, because all they want to know is:
>  
>
<snip/>

Right. Here "process in a program" was meant more like this: you have 
three schemata A B C, from three independent places, and you have a 
function to get from A to B and one from B to C (a function that does 
more or less the same as an XSLT stylesheet or an XQuery expression).

Now I want to get from A to C directly, enchaining the functions. Then I 
want to search C similarly to what you do with fgrep. Now I would expect 
an XML aware programming language to find out what is going on and only 
transform those bits that I need. This has actually been researched in 
functional programming, but for quite restricted tree manipulations and 
types.

A could be some schema for storage in relations, B some intermediary 
format, and C presentation layer. What should work in the small should 
work in the large.

>Other programs process XML using SAX in a purely streaming fashion,
>and never build any explicit tree.
>
>  
>
Yes, but if you want to do the above, one might have a hard time using 
only callback methods. It will work for some things, and is fast, but in 
general it is not convenient and can be clumsy.  One can bring it to 
work, but for the programmer it does not feel the same. Do people 
actually enchain SAX handlers?

>>>SAX exposes probably the most popular non-tree model, but it's hardly 
>>>the only one. Indeed there are non-event, non-tree models as well. Some 
>>>      
>>>
>>Aha, event-based and in which order are the events called?
>>    
>>
>
>Document order.
>  
>
: )

-- 
Burak Emir

http://lamp.epfl.ch/~buraq


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.