Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > html into xml tags

Reply
Thread Tools

html into xml tags

 
 
Alex
Guest
Posts: n/a
 
      08-31-2006
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




 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      08-31-2006
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
 
Reply With Quote
 
 
 
 
Joe Kesselman
Guest
Posts: n/a
 
      09-01-2006
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
 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      09-01-2006
Alex wrote:

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


A well-known problem, particularly in the RSS world. There's a classic
blog entry that describes many of the techniques and issues
http://diveintomark.org/archives/200...compatible-rss

 
Reply With Quote
 
Peter Flynn
Guest
Posts: n/a
 
      09-02-2006
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" ...


See http://xml.silmaril.ie/authors/html/

///Peter
--
XML FAQ: http://xml.silmaril.ie/
 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      09-02-2006
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
 
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
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
html tags within meta tags allowed? Donald Firesmith XML 5 01-08-2005 11:29 PM
Tools to extract data from SQL database and convert it into XML & insert XML data into SQL databases Harry Zoroc XML 1 07-12-2004 10:10 PM
RegEx to find CFML tags nested in HTML tags Dean H. Saxe Perl 0 01-03-2004 06:11 PM
how to write some xml into huge xml file into speceific location??? Xenia XML 4 11-25-2003 07:14 PM



Advertisments