Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XML-aware programming language?

From: Burak Emir <Burak.Emir@----.-->
To: John Cowan <jcowan@-------------.--->
Date: 12/2/2004 3:47:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent