Non Sucking YAML parser

David Cantrell david at cantrell.org.uk
Mon Sep 18 14:27:41 BST 2006


On Thu, Sep 14, 2006 at 02:29:12PM +0100, Andy Armstrong wrote:
> On 14 Sep 2006, at 14:18, David Cantrell wrote:
> >Perhaps I'm being dense, but what is the point of namespaces in  
> >XML?  If
> >your code comes across a document it can't deal with cos it's - say -
> >describing a hospital visit instead of a book - then it's going to  
> >barf.
> >Code dealing with XML must know a lot about the documents anyway,  
> >so all
> >that extra verbiage is pointless.
> Among other things namespaces make it possible to handle the case  
> where a single document uses two grammars both of which define 'title'.

You mean like when <title>Mr</title> Cantrell borrows <title>Some
Tedious Book On XML</title> from the library?  The application dealing
with this has to know that <person><title>...</title></person> is
different from <book><title>...</title></book> and deal with the two
titles appropriately.  It needs to have all that special knowledge built
in.  So I still fail to see the point.

-- 
David Cantrell | top google result for "topless karaoke murders"

    fdisk format reinstall, doo-dah, doo-dah;
    fdisk format reinstall, it's the Windows way


More information about the london.pm mailing list