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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Attributes and XML-RPC

[ Lists Home | Date Index | Thread Index ]
  • From: "Don Park" <donpark@docuverse.com>
  • To: "'Dave Winer'" <dave@userland.com>, <xml-dev@ic.ac.uk>
  • Date: Tue, 21 Sep 1999 03:28:10 -0700

Dave,

I recently had an idea on this problem but haven't had much time to form an
opinion about it.  Anyway, here it is.  Comments or flames are welcome.

The idea is to introduce a special attribute to mark elements which can be
attributes: xml:attr.

Here is an example of how it is used.

<?xml version="1.0"?>
<methodCall>
   <methodName xml:attr="name">examples.getStateName</methodName>
   <params>
      <param>
         <value><i4 xml:attr="param.value">41</i4></value>
         </param>
      </params>
   </methodCall>

xml:attr attribute marks the element as being an attribute of one of its
ancestor element.  There is a constraint that you can not have to more than
one element that maps to same attribute.  How to express this in schema is a
definite problem though.

A weird idea but seems very useful at first glance, more for DOM than SAX.

Best,

Don Park    -   mailto:donpark@docuverse.com
Docuverse   -   http://www.docuverse.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

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

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