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

Re: Well-formed BinXML


binxml
Kevin Jones wrote:


> I have a small list of constraints that need to be added 
> which are not implicitly guaranteed by this encoding. Just 
> wondering if anybody can think of any others I should be 
> looking at that would not typically be for free as part of 
> this type of binary encoding. 


It's hard to suggest because we don't know what is guaranteed by the 
encoding. However, another thing that jumps out is the test for legal 
characters: e.g. no unmatched surrogate pairs and no C0 controls except 
the three allowed ones (\r, \n, and \t). And of course there are also 
namespace constraints.

Finally, I would not assume that the encoding guarantees everything 
unless you check that the document is correctly encoded. The parser 
should assume that any and all bits might have been randomly or 
non-randomly flipped, and should detect any problems that result. That 
is, do not assume that the document was created by a conforming encoder. 
This is similar to how the Java virtual machine verifies byte codes and 
notices problems that occur even if certain byte code sequences could 
not have been created by javac.

-- 
Elliotte Rusty Harold  elharo@m...
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

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.