Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to have a space in XML Element Name

 
Amit Siinngghh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Can we have a space in XML element name.

like

<Name>
<Some name/>
<Name>

is there a way to specify a space in XML name I tried   but then the xml is not wellformed.

any insights into it

thanks
Amit
 
Ryan McGuire
Ranch Hand
Posts: 1057
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

If you look at the XML 1.1 spec, starting at definition number [39] and follow all the sub definitions, sub sub definitions, etc. You'll see that you can't put a space in a tag name. You can't even get clever and call "Some" the tag name and "name" an attribute with no value (like some HTML things <INPUT CHECKED/> because every attribute needs an assigned value. The best you might get is <Some name=""/>.

Ryan
[ May 26, 2005: Message edited by: Ryan McGuire ]
 
Amit Siinngghh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for clearing it up,


Amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic