Roman Suzi fed this fish to the penguins on Monday 23 June 2003 09:49
am:
>
> OK. When I was talking about plain text, I had in mind that it
> has some proprietary format. For example, I can easily write:
>
> ------------------
> foo = "123"
> bar = "456"
> zoo = "la\"lala"
> ------------------
>
> And it's not very hard to parse that.
> In case of XML I will need something like
>
> <?xml version="1.0"?>
> <foo>123</foo><bar>456</bar><zoo>la"lala</zoo>
>
> - not a big deal, but it's harder to parse. And also XML software
> keeps changing (or so it seems), and this gives a sense of
> instability.
>
I'm a total neophyte at XML, but for some reason I'd have turned the
example into:
<?xml version="1.0"?>
<assign><name>foo</name><value>123</value></assign>
<assign><name>bar</name><value>456</value></assign>
<assign><name>zoo</name><value>la"lala</value></assign>
Should be much simpler to parse as you aren't dynamically creating XML
<> entities, you only have three such "assign", "name", and "value".
--
> ================================================== ============ <
> | Wulfraed Dennis Lee Bieber KD6MOG <
> | Bestiaria Support Staff <
> ================================================== ============ <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <