Escape codes in XML?

Discussion in 'XML' started by Bert Sierra, Jul 22, 2004.

  1. Bert Sierra

    Bert Sierra Guest

    Hello.

    Does XML allow the use of non-ASCII characters in tags using a '\'
    escape sequence? For example, is the following valid XML code?

    <\251ART offset="58265" size="35">
    <data offset="58273" size="27">Frank Zappa</data>
    </\251ART>

    I am developing a small application that will parse a type of file and
    produce XML tags based on what it finds. The names of the tags are
    extracted from the file, and may contain characters in the range 0-255.
    What is the proper way to represent these characters in tags?

    Thanks in advance for any help...


    -- Bert Sierra
    Bert Sierra, Jul 22, 2004
    #1
    1. Advertising

  2. Bert Sierra wrote:

    > Does XML allow the use of non-ASCII characters in tags using a '\'
    > escape sequence? For example, is the following valid XML code?
    >


    You should read carefully:

    3.1 Start-Tags, End-Tags, and Empty-Element Tags
    http://www.w3.org/TR/2000/REC-xml-20001006#sec-starttags

    Michael
    Michael Wiedmann, Jul 22, 2004
    #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. Steve

    Escape codes not working

    Steve, Jun 21, 2004, in forum: Java
    Replies:
    7
    Views:
    1,510
    Roedy Green
    Jun 22, 2004
  2. Daniel

    unescaping xml escape codes

    Daniel, Aug 10, 2003, in forum: Python
    Replies:
    2
    Views:
    5,187
    Bengt Richter
    Aug 11, 2003
  3. Replies:
    2
    Views:
    2,788
    Malcolm
    Aug 20, 2005
  4. slomo
    Replies:
    5
    Views:
    1,493
    Duncan Booth
    Dec 2, 2007
  5. Krist
    Replies:
    8
    Views:
    6,899
    lightst4r
    Jul 23, 2012
Loading...

Share This Page