CData Error (Java JDOM)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Elton John

    #1

    CData Error (Java JDOM)



    I'm using JDK 1.4.2 and JDOM 9.

    Is there a restriction on what can be put into CDATA sections ? IE is
    failing on the registered trademark sign (r in a circle). It might not be IE
    but that's all I have here. Is there a restriction on what I can put into
    CDATA ?


  • Richard Tobin

    #2
    Re: CData Error (Java JDOM)

    In article <266dnVotcq92ru GiRVn-jw@giganews.com >,
    Elton John <me@privacy.net > wrote:
    [color=blue]
    >Is there a restriction on what can be put into CDATA sections ? IE is
    >failing on the registered trademark sign (r in a circle). It might not be IE
    >but that's all I have here. Is there a restriction on what I can put into
    >CDATA ?[/color]

    You can certainly put that character in a CDATA section, but because
    you can't use character references in a CDATA section you can only do
    it if the encoding you are using includes that character. However,
    most encodings (eg latin-1) do include it, so I doubt that's the
    problem.

    -- Richard
    --
    Spam filter: to mail me from a .com/.net site, put my surname in the headers.

    FreeBSD rules!

    Comment

    Working...