Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: is XML too hard?

by zby (Vicar)
on Mar 17, 2003 at 20:14 UTC ( #243780=note: print w/replies, xml ) Need Help??

in reply to is XML too hard?

The problem with XML is that people use it as a datastructure language, while it is just a markup language. The use of XML as datastructure language is a bit artificial - you can structure things by markup but it's not the most efficient way (and you are confined to trees). Why not choose a subset of a programming language - they were designed to be efficient in describing datastructures in a human readible format.

Replies are listed 'Best First'.
Re^2: is XML too hard?
by diotalevi (Canon) on Mar 17, 2003 at 20:18 UTC

    And of course, "datastructure" is data plus context. That's exactly what XML provides. It is a "datastructure" format.

      It is. I don't say that it is not. I just say it is not a good one. By good one I define one that would be efficient in describing the datastructures we encounter most frequently in our programming practice - a general one. XML is well suited for describing structure in text document's not general programming datastructures.

      The issue is quite subtle - but look at XML::Simple. It tries to make a tree datastructure from XML file, but to do it it needs to make so many gueses that for quite uncomplicated structures you get anomalies - for instance when you save the structure build from XML and get some entirely different XML.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243780]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-10-20 22:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (283 votes). Check out past polls.