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

Re: XML ... simple building blocks, simple assemblymechanisms,


xml simple tutorial
Hi Roger,

On Mon, 2004-06-21 at 15:48, Roger L. Costello wrote:
> Hi Folks,
>  
> I think that XML is a lot like Legos.  
>  
> Consider Legos: with simple building blocks that have clearly defined
> assembling mechanisms (i.e., ways of snapping the blocks together) you
> can create a virtually endless variety and complexity of structures.
>  
> Consider XML: in XML there are just two building blocks: (1) tags, and
> (2) data.   The assembling mechanisms of XML building blocks are very
> simple: (1) a tag can embed tag(s), and (2) a tag can embed data. 
> With these building blocks, and these assembly mechanisms virtually
> any information structure can be created.
>  
> Simple building blocks ... simple assembly mechanisms ... endless
> complexity.

I agree with the conclusion and wouldn't want to sound pedantic, but XML
tags can't embed either tags nor data.

XML tags are either start tags or empty (which can only embed meta-data)
or end tags (which do not embed anything).

I think that you can either choose:

      * to stay at the level of the XML document as a text and say that
        in XML the two building blocks are tags and text literals
        (keeping apart the more exotic stuff) 
      * or to elevate yourself at the level of the XML infoset and say
        that the building blocs are elements, attributes and text nodes
        (forgetting again the more exotic information items).

My 0.02 Euros

Eric

> Nice!  
>  
> /Roger
-- 
Rendez-vous à Paris (Web Services Convention).
                                                http://masl.to?C12E25728
Upcoming XML schema languages tutorial:
 - Portland   -half day-   (27/07/2004)        http://masl.to/?E6ED13728
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


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.