OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   "XMLSON" Idea.

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: "XMLSON" Idea.
  • From: Tei <oscar.vives@gmail.com>
  • Date: Wed, 26 Jul 2006 12:54:29 +0200
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=An7uurbgz/hq6ccbWCLv08c/0Xkb/XBCvA5kuIAMtsPpNBx9cylMT3zv4JKpJl73ZeypJ5W/hF0FoX4YwCE7IfmjGxljQvqw1LHexciQAjZ0NGKvNeDrfnWACcmx45Q2VFfU8xZSaadNqQt4taRW+wmGBRosnOAx0tKYCH4LcUk=

He!.

I have a idea that can be fun.

<?xml?>
<sales vendor='John'>
   <item id="carrot" price="3" quantity="10"/>
   <item id="papas" price="5" quantity="3"/>
</sales>

"Magic goes here".
Javascript:

 alert( staticClone.sales.carrot._quantity );// will croack 3

 alert( staticClone.sales._vendor );// will croack John

The dom functions are nice and all, but having a brutally simple acces
can be nice for brutally simple stuff.

--Tei




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS