Wholly unnecessary flame. (was Re: pyXML!)

Jan Dries jdries at mail.com
Sun Oct 15 01:28:18 EDT 2000


> > <float name='Pi'>
> >   <exponent>
> >     1
> >   </exponent>
> >   <mantissa>
> >     <digit>
> >       3
> >     </digit>
> >     <digit>
> >       1
> >     </digit>
> >     <digit>
> >       4
> >     </digit>
[snip]
> >   </mantissa>
> > </float>
> >
> >    The point is that the XML is self-documenting -
> > it's clear to anyone that this denotes the number
> > 3.14159... .
> 
> I dunno...to uninitiated folks like me, the more immediate conclusion is
> that XML is verbose. <wink>

An shorter way to express it would be to write

<xsd:element name="pi" type="xsd:double">
<pi>3.1415926536</pi>

The first line defines the element pi to be of type (IEEE 754) double,
and the second line assigns the proper value to it.

But-that-doesn't-change-the-fact-that-XML-is-verbose-ly y'rs,
Jan




More information about the Python-list mailing list