[Dev] attributes in the xml syntax
Kervin L. Pierre
kervin at adevsoft.com
Tue Jan 25 10:51:29 PST 2005
If you're designing the grammar...
http://www-106.ibm.com/developerworks/xml/library/x-eleatt.html
I think child elements are preferred when possible but
results in more verbose code.
-
Kervin
Alec Flett wrote:
> Another question:
> it reasonable/accepted/endorsed to say
>
> <SomeItem itsName="foo" blockName="foo" selectedItemAttribute="bar"/>
>
> instead of
>
> <SomeItem itsName="foo">
> <blockName>foo</blockName>
> <selectedItemAttribute>bar</selectedItemAttribute>
> </SomeItem>
>
> 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)
>
> Alec
>
>
> ------------------------------------------------------------------------
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
More information about the Dev
mailing list