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

RE: SV: SV: XML=WAP? And DOA?


child element in wap
On 15 Jan 2002, Simon St.Laurent wrote:

> On Tue, 2002-01-15 at 11:51, Nicolas LEHUEN wrote:
> > Maybe what we try to say is that from a programmatical point of view, there
> > is no added information in a format where the meta-data is embedded into the
> > data, compared to a format where meta-data is expressed in a header and pure
> > data follows.
>
> Not true.  XML's embedded markup permits the creation of arbitrarily
> labeled hierarchies.  It's rather difficult to connect headers to such
> things - CSV column headers only work with columns.  Markup structures
> introduce the possibility of a very different kind of structural
> metadata.

That's probably not the point, though. XML is tree structured, CSV is
table structured, both let you assign names to the data items in their
data structures as well as might be expected... XML lets you label
elements and attributes, CSV lets you label fields. Perhaps CSV is lacking
the ability to explicitly name rows, but there is a convention of putting
anything that might be considered a row title in the first row, as used by
many charting packages by default!

To bring up a point I raised in an offlist discussion, look at it this
way: Sure, CSV is limited in only representing tables, but it represents
tables better than XML does; a CSV table is *always* explicit, while a
table in XML is just a pattern of tree structure where an element happens
to contain elements that all have the same name and either all have the
same attributes or all have the same child elements with no further levels
of children.

In particular, any decent spreadsheet will allow you to import a CSV file,
select a couple of columns, and produce a pie chart (as long as the data
column contains numeric information). The logic required is quite simple.

However, there is no obvious 2D structure in an XML document, so you can't
do the same thing. Sure, if you *know* that the XML document follows a
particular layout, you can write an XPath query that would pull out a set
of nodes that are what you need to use to produce the pie chart, but that
query would need to be hand crafted for every different representation of
essentially tabular data in XML...

Me, I'd much rather see a 'general purpose' data language that has *both*
unordered key:value pairings *and* ordered N-dimensional arrays in the
same type system...

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software


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.