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

Re: Fast text output from SAX?


xbis multiple documents
Rick Marshall wrote:

>it's precisely the end tag that is important. if you use a binary format
>how do you know the end of the data is the end of the data? and how do
>you know it is well formed? i don't think you can without a lot of other
>overhead. checksums on tag content etc.
>
>and it still has to be byte oriented to be portable. come to think of
>it, it wasn't until agreement was reached on 8 bit bytes that a lot of
>processor design could take off. another compromise.
>
>  
>
I don't know what you're basing your opinions on, but in the case of 
XBIS the representation is byte-oriented. In some cases XBIS will use 
fields within a byte for particular purposes (often for flags, sometimes 
for short length or handle values), but the byte is still the basic unit 
of data.

As for end tag and such... XBIS uses a null byte to indicate the end of 
a sequence of attributes or elements, so those are clearly marked. Both 
the start and the end of a document are clearly defined in XBIS (unlike 
in the text XML representation), so multiple documents can be sent as 
part of a single stream. You *could* construct a malformed XBIS encoding 
if you wanted to, but in that case the decoder would simply throw an 
error - there's no need for "checksums on tag content etc."

  - Dennis

-- 
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services
Training and Consulting
http://www.sosnoski.com
Redmond, WA  425.885.7197



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.