Sorry I meant this in the context of the parcel loader - not general XML. From talking to a few folks:
* <a b="c"/> is one thing
and the following two things are the same as each other, but different than the above
* <a><b>c</b></a>
* <a><b value="c"/></a>

So at least the latter of those two is a little bit less verbose.

Alec

Ted Leung wrote:
 and so forth?
 i.e. is it correct to assume that these three statements are identical?
 * <tag attr="value"/>
 * <tag><attr>value</attr></tag>
 * <tag><attr value="value"/></tag> (I just saw this for the first time yesterday)

None of these are the same.

1. an element named "tag" with an attribute named "attr".  The value of the attr attribute is value
2. an element named "tag" with a child element named "attr" whose content is value
3. an element named "tag" with a child element named "attr" with an attribute named "value".  The value of the "value" attribute is value

----
Ted Leung                 Open Source Applications Foundation (OSAF)
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to