XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Just nodes please (was: Re: [xml-dev] XML2.0:Truncated End Tags (Was: Fixing what's broke))

On Mon, 2010-12-06 at 18:44 +0200, Manos Batsis wrote:
> On 12/06/2010 06:04 PM, David Lee wrote:
> > If you really value conciseness above all else there is always attributes
> 
> On a sidenote, it would be great if
> 
> <node1 node2="node3" />
> 
> was equal to
> 
> <node1>
>   <node2>node3</node2>
> </node1>

I once proposed xml:attributes for this purpose:

<node1>
  <xml:attributes>
    <node2>value</node3>
  </xml:attributes>
  content here
</node1>

The xml:attributes wrapper is needed so you can distinguish element
content from attributes, if that distinction is important.

The syntax then allows attributes to contain markup (breaking
pretty much every existing XML API, of course...)

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS