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

Re: "Introducing MicroXML, Part 1: Explore the basicprinciples

  • From: Uche Ogbuji <uche@ogbuji.net>
  • To: James Clark <jjc@jclark.com>
  • Date: Sun, 15 Jul 2012 08:25:28 -0600

Re:  "Introducing MicroXML
On Sat, Jul 14, 2012 at 10:53 PM, James Clark <jjc@jclark.com> wrote:
I forgot to mention one other point.

I think there are many situations where it would be useful to have a
single byte stream contain a sequence of MicroXML documents, eg log
files or XMPP-like applications.

Yes, this is something I've long wished XML had. Of course there have been all the old, transport layer tricks such as separating them with form feed characters and having a pre-processor separating by that signal and sending them serially to a parser, but it would be useful to have a way to describe the parsing of such documents in XML terms.

 
 If you allow PIs both before and
after the root element, you can't unambiguously parse such a byte
stream because you don't know whether a PI between two root elements
goes with the preceding or following element.

I'm still mulling over your thoughts on PIs, and at first consideration your suggestions seem very sound, but I'm not sure about the document series use-case argument.  I would tend to think there should be some sort of separator. Since the DTDecls has been so greatly simplified, one could simply mandate that at the beginning of each document for the serial use-case. Or pick form feed or other such control character as a separator.

Sure without a separator, you would simply have an closing document tag switch the serial docs parser to a state of looking for new start tag, DTDecl, PI or end of stream, but I think an explicit separator would reduce the cases where what we would think of now as malformedness from user error winds up looking like an intentional sequence of two or more documents.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.