Attributes and XML-RPC

Don Park donpark at docuverse.com
Tue Sep 21 12:24:28 BST 1999


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 at docuverse.com
Docuverse   -   http://www.docuverse.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at 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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list