Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: is XML too hard?

by Abigail-II (Bishop)
on Mar 17, 2003 at 23:53 UTC ( #243844=note: print w/ replies, xml ) Need Help??


in reply to is XML too hard?

XML too hard? It's just LISP, isn't it? Except with more typing.

XML: <REALLYLONGNAME><ANOTHERLONGNAME>foo</ANOTHERLONGNAME></REALLYLONG +NAME> Lisp: (REALLYLONGNAME (ANOTHERLONGNAME (foo)))

Programmers grokked LISP 50 years ago. If XML is too hard, it says more about the quality of the programmers than of XML.

Abigail


Comment on Re: is XML too hard?
Download Code
Re: Re: is XML too hard?
by parv (Priest) on Mar 17, 2003 at 23:59 UTC
    In that respect, XML documents should/need to be converted to Lisp programs. Then all one would need is Perl/Lisp interface, where Lisp would just give you what you ask Perl for.
Re: Re: is XML too hard?
by zby (Vicar) on Mar 18, 2003 at 08:32 UTC
    I don't know lisp but this analogy seems to me not quite correct. For instance how about this XML:
    <REALLYLONGNAME with_a_property='aaa'> some free form text <ANOTHERLON +GNAME>foo</ANOTHERLONGNAME> text text</REALLYLONG +NAME>
    How would you translate this to lisp?
        OK - I was fooled by the unquoted 'foo' in the first example.
      (REALLYLONGNAME ((with_a_property "aaa")) ("some free form text" (ANOTHERLONGNAME () ("foo")) "t +ext text"))

      Abigail

        OK. This allready has been answered in fact and I withdraw all my pretensions. For my explanation - I was lured by the lack of quoting in your first example.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-11-25 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (148 votes), past polls