[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: "Introducing MicroXML, Part 1: Explore the basicprinciples
On Sat, Jul 14, 2012 at 10:53 PM, James Clark <jjc@jclark.com> wrote: I forgot to mention one other point. 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 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|