Attributes and XML-RPC

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


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"?>
   <methodName xml:attr="name">examples.getStateName</methodName>
         <value><i4 xml:attr="param.value">41</i4></value>

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.


Don Park    -   mailto:donpark at
Docuverse   -

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

More information about the Xml-dev mailing list