From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <4C1F05E7-B327-480A-91F3-055076377C99@fastmail.fm> <3633bacf2efc9da1b911893b4029531b@coraid.com> Date: Wed, 30 Jun 2010 11:25:46 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0016e64f47c6893b71048a437b42 Subject: Re: [9fans] xml Topicbox-Message-UUID: 3b62084e-ead6-11e9-9d60-3106f5b1d025 --0016e64f47c6893b71048a437b42 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 30, 2010 at 7:47 AM, hugo rivera wrote: > Now that I had a closer look to xml files, I think I get the main idea. > From my point of view, xml doesn't seem so bad after all (please, > please, this is just an uninformed opinion) but perhaps in the future > I'll be able to see its defects. > > -- > Hugo > > What XML buys you is a bunch of tools that already work for about half of what you'd want a language tool to do. By this I mean there's parsers already written, and lots of libraries to examine the tags at different levels in a hierarchy or stream of XML data. You still have to define the meaning of each tag, attribute and tagged text. For validation of documents in XML there's other XML technologies like Schemas you can use, or you could describe the valid set of tags in a DTD. To add to the madness you can write XML files that translate XML files to other files (possibly other XML files) in an XML defined language called XSLT. XSLT is a bit like writing in a functional programming language with the worst syntax possible :-). The reason I say "worst syntax possible" is that the amount of typing you'll do to express something simple in XML is pretty excessive. Eventually you'll find that the entire world became a nail for the XML hammer and that things like SOAP, XML-RPC, are just not very good due to the fact that sending XML documents on a wire for simple RPC calls is grossly inefficient, and there's a lot better technology out there for these sorts of things. That said, XML is still here, and you kind of have to learn to play ball with it. I just had a discussion with a coworker about a configuration language for a management project here at work and had to argue in XML's defense (customers will more easily understand and be able to accept an XML language than whatever new cute DSL we come up with). I feel like I need a shower now. Dave --0016e64f47c6893b71048a437b42 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Jun 30, 2010 at 7:47 AM, hugo ri= vera <uair00@gmail= .com> wrote:
Now that I had a closer look to xml files, I think I get the main idea.
>>From my point of view, xml doesn't seem so bad after all (please,
please, this is just an uninformed opinion) but perhaps in the future
I'll be able to see its defects.

--
Hugo


What XML buys you is a bunch of= tools that already work for about half of what you'd want a language t= ool to do. =A0By this I mean there's parsers already written, and lots = of libraries to examine the tags at different levels in a hierarchy or stre= am of XML data. =A0

You still have to define the meaning of each tag, attri= bute and tagged text. =A0For validation of documents in XML there's oth= er XML technologies like Schemas you can use, or you could describe the val= id set of tags in a DTD. =A0

To add to the madness you can write XML files that tran= slate XML files to other files (possibly other XML files) in an XML defined= language called XSLT. =A0XSLT is a bit like writing in a functional progra= mming language with the worst syntax possible :-).

The reason I say "worst syntax possible" is t= hat the amount of typing you'll do to express something simple in XML i= s pretty excessive. =A0

Eventually you'll find= that the entire world became a nail for the XML hammer and that things lik= e SOAP, XML-RPC, are just not very good due to the fact that sending XML do= cuments on a wire for simple RPC calls is grossly inefficient, and there= 9;s a lot better technology out there for these sorts of things.

That said, XML is still here, and you kind of have to l= earn to play ball with it. =A0I just had a discussion with a coworker about= a configuration language for a management project here at work and had to = argue in XML's defense (customers will more easily understand and be ab= le to accept an XML language than whatever new cute DSL we come up with). = =A0

I feel like I need a shower now.

Dave





--0016e64f47c6893b71048a437b42--