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

Re: Article: "The horror of XML"


define horror in other countries
At 6:49 PM +0000 10/30/02, Richard Tobin wrote:


>So how would *you* define something like SOAP?  In BNF? Some specs
>(SMIL was one I think) did this and then found that it wasn't quite
>the same as XML.

I think plain well-formed XML works well enough. There's no need to 
reinvent your own grammar.

>  Using everyday terms like "element" and "attribute"?
>The infoset is just a standard terminology for that.

No, it's not and that's the problem.Infosets can be constructed that 
cannot be serialized. A single element in an infoset can have 23 
different attributes with the same name. In the infoset an element 
name can be composed of nothing but white space. The infoset does not 
promise well-formedness. It is not necessarily tied to an actual XML 
document. About the only thing the infoset actually inherits from XML 
1.0 is the tree structure. All the other constraints are missing.

>Using your own
>data model like XPath?  You could just as well say that XSLT doesn't
>imply XML syntax, it can use anything that produces an XPath data
>model...

Unlike the infoset, the XPath data model is tied to namespace 
well-formed XML. That would make it superior though I still think 
simple XML documents are adequate. I don't think compressing them or 
encrypting them would be a problem. Just define the operation on what 
happens after they're decompressed and decrypted. The SOAP processor 
would still receive a namespace well-formed XML 1.0 document. Passing 
DOM objects around is a little trickier, but I think that's 
acceptable provided that the object adheres to all XML 1.0 
constraints (not all DOMs do).
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

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.