Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > numerical as the first character in TagNames

Reply
Thread Tools

numerical as the first character in TagNames

 
 
asnowfall@gmail.com
Guest
Posts: n/a
 
      10-11-2005
IE throws error at <1060> for this XML file
------------------------------------------
<?xml version="1.0"?>
<root>
<1060>
<UUID>
1bac9070-bf3b-404f-b7ca-ada24fc09eb3
</UUID>
</1060>
</root>
------------------------------------------


Workaround is prefixing alphabet to <1060>.
Ex: <L1060> makes it work.


Why this behavior?
Is this illigal to have numerical as the first character in TagNames?

Thanks
Ramesh

 
Reply With Quote
 
 
 
 
Johannes Koch
Guest
Posts: n/a
 
      10-11-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Is this illigal to have numerical as the first character in TagNames?


Yes. Look at the XML specification:
Element names must match the 'Name' prdocution
(<http://www.w3.org/TR/REC-xml/#NT-Name>).

[5] Name ::= (Letter | '_' | ':') (NameChar)*
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
character encoding +missing character sequence raavi Java 2 03-02-2006 05:01 AM
getting the character code of a character in a string Velvet ASP .Net 9 01-19-2006 09:27 PM
Any way to get node list by giving tagnames without prefixes eva.mukhija@gmail.com XML 4 10-05-2005 11:57 AM
warning: multi-character character constant...help me! mimmo C Programming 4 04-10-2004 08:15 PM
Character reference "&#c" is an invalid XML character cgbusch XML 6 09-02-2003 07:04 PM



Advertisments