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

Re: Hostility to "binary XML" (was Re: XML 2004 webl


xml duplicate attributes
On Mon, Nov 22, 2004 at 05:26:52PM -0800, Dare Obasanjo wrote:
[...]
> So detecting duplicate attributes and checking if characters are legal
> isn't well-formedness checking? I'm confused, how are you quoted out of
> context? 
It's part of it of course, but not all of it.

To argue in your style, "so a subset is always equal to the whole?"

> 1. Derek points out at that some well-formedness checking is expensive
> 2. Liam responds that parsers can skip them and trust the generator of
> the XML
> 3. I point out that this is problematic on the Web where consumers of
> XML usually cannot trust producers of XML 

I didn't use the word "trust".  An alternative is to use a format
in which some or all of those errors can't occur.

For example, imagine a format in which attributes are always sent
sorted.  Now the cost of checking for a duplicate is greately
reduced, although not zero.  In practice I'd want all namespace
declarations up front, but that's a side-issue.  Imagine further a 
schema-based format in which the possible attributes are supplied in
sequence, with the positions mapping to names.  Now no test for
duplicate attributes is required, and yet there's no breach of
trust possible.

This sort of approach can be difficult with arbitrary Web services
when there's no schema for a payload, but there are other cases
where it can work fine.

People are already using binary potocols to transfer XML efficiently.
Microsoft is doing it too.  The question is not whether people should
do this, but whether there's a single way of doing it, or even a
single framework for saying which method you're using it, that
will be useful enough and across enough industries that it'd make
sense for W3C to specify.

I don't know the answer to that question yet.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/

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.