RE: html in xml

One way is to use a CDATA section:
 
<myXMLtag>
  <![CDATA[
    <html>
    <body>
    <h3>Hello world</h3>
    </body>
    </html>
  ]]>
</myXMLtag>
 
Any character content except "]]>" is valid in such a section.
 
-- Chris Pearson,
   Intel Corporation

-----Original Message-----
From: Vincenzo Spoto [mailto:vspoto@rm.atos.it]
Sent: Friday, May 19, 2000 2:07 AM
To: www-html@w3.org
Subject: html in xml


Hi,
I have a problem. I have a not well formed html file and I want to insert it
into a xml field. For example
 
<myXMLtag>
    <html>
    <body>
    <h3>Hello world</h3>
    </body>
    </html>

</myXMLtag>
 
When I parse the xml file I obtain an error because the parser don't find
the <html> tag in my dtd. 
Is there a way to ignore html tags? Note: my html file isn't well formed! So
I can't use a dtd for html tags.
 
My email is vspoto@rm.atos.it <mailto:vspoto@rm.atos.it> 
 
Thank you in advance.
 
Vincenzo Spoto
ATOS S.p.A
Via A. Rava' 124
00142 Roma
Tel. 06/590651
Fax 06/59065207

Received on Friday, 19 May 2000 12:11:34 UTC