html into xml tags

Discussion in 'XML' started by Alex, Aug 31, 2006.

  1. Alex

    Alex Guest

    hello! do u know how can i put html into and xml tag
    Example:

    <element><br></element>

    i receive error "the page is not well formatted" ...

    Thanks!

    Alex
    Alex, Aug 31, 2006
    #1
    1. Advertising

  2. Alex wrote:

    > hello! do u know how can i put html into and xml tag
    > Example:
    > <element><br></element>
    > i receive error "the page is not well formatted" ...


    Either:
    * Use XHTML and namespace it
    * Encode the special characters with entities
    or
    * Use CDATA markers around the HTML


    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Aug 31, 2006
    #2
    1. Advertising

  3. David Dorward wrote:
    >> <element><br></element>


    In this particular case: Change the <br> to <br/>


    --
    () ASCII Ribbon Campaign | Joe Kesselman
    /\ Stamp out HTML e-mail! | System architexture and kinetic poetry
    Joe Kesselman, Sep 1, 2006
    #3
  4. Alex

    Andy Dingley Guest

    Andy Dingley, Sep 1, 2006
    #4
  5. Alex

    Peter Flynn Guest

    Peter Flynn, Sep 2, 2006
    #5
  6. Joe Kesselman wrote:

    > David Dorward wrote:
    >>> <element><br></element>


    > In this particular case: Change the <br> to <br/>


    You missed out the "and namespace it" bit.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Sep 2, 2006
    #6
    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. Dean H. Saxe
    Replies:
    0
    Views:
    1,015
    Dean H. Saxe
    Jan 3, 2004
  2. Rob Nicholson
    Replies:
    3
    Views:
    677
    Rob Nicholson
    May 28, 2005
  3. Xenia
    Replies:
    4
    Views:
    423
    Xenia
    Nov 25, 2003
  4. Harry Zoroc
    Replies:
    1
    Views:
    920
    Gregory Vaughan
    Jul 12, 2004
  5. Donald Firesmith

    html tags within meta tags allowed?

    Donald Firesmith, Jan 5, 2005, in forum: XML
    Replies:
    5
    Views:
    872
    Andy Dingley
    Jan 8, 2005
Loading...

Share This Page