numerical as the first character in TagNames

Discussion in 'XML' started by asnowfall@gmail.com, Oct 11, 2005.

  1. Guest

    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
    , Oct 11, 2005
    #1
    1. Advertising

  2. 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)
    Johannes Koch, Oct 11, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. iMonkey

    Numerical Order

    iMonkey, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    355
    iMonkey
    Jul 31, 2003
  2. Al Murphy

    Java numerical recipes online...

    Al Murphy, Feb 5, 2004, in forum: Java
    Replies:
    1
    Views:
    5,627
    Steve W. Jackson
    Feb 5, 2004
  3. Replies:
    4
    Views:
    514
    Roedy Green
    Mar 30, 2006
  4. Replies:
    4
    Views:
    706
    Martin Honnen
    Oct 5, 2005
  5. lou
    Replies:
    1
    Views:
    663
Loading...

Share This Page