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

Re: Parsing Streaming XML Incrementally


streaming xml jabber

Stephen J. Scheck wrote:
>
> Unfortunately, the device uses XML in a way which seems very non-standard
> to me, although I must admit I am fairly new to XML. I am of a mind to go
> and scream at the vendor of this device for making the RPC mechanism work
> the way it does, but first I'd like some feedback to ensure that I'm on
> sound theoretical footing.
> 
> Here's a brief example of how an exchange with this thing works, so that
> I can explain the problems with it:
>
> [ explanation deleted ]
>
> [...], is there any precedence for the way the vendor is using XML
> streams in this manner? Is there anything else like this in common
> use/acceptance? How does the experienced XML development community
> feel about it? Is it a valid "use" of XML, or an "abuse"?

This sounds a lot like how Jabber works (http://www.jabber.org/),
which is certainly an _interesting_ use of XML.

A Jabber session consists of two complete XML documents,
one sent client-to-server and the other sent server-to-client.
Both documents are generated in streaming mode; outgoing
data can depend on data received earlier in the dialog, 
and vice versa.

It's a bit reminiscent of lazy I/O in earlier versions of Haskell,
where the main program had the rather counterintuitive type 

    main ::  [Response] -> [Request]

i.e., it takes a list of Responses as input and returns a list 
of Requests.

There are Perl libraries for Jabber -- see dev.jabber.org --
you might find something useful in there.


--Joe English

  jenglish@f...

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.