[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: help needed
- From: "Julian F. Reschke" <firstname.lastname@example.org>
- To: Jerry Johns <Jjohns@computerlogic.com>, email@example.com
- Date: Fri, 05 Jan 2001 14:14:54 +0100
> From: Jerry Johns [mailto:Jjohns@computerlogic.com]
> Sent: Friday, January 05, 2001 2:06 PM
> To: 'firstname.lastname@example.org'
> Subject: help needed
> I'm using the DOM API to create an XML file. I need to imbed an HTML
> document within the XML document. I also need to imbed a JPEG binary file
> into the XML documented.
> When I use the DOM API to place content into the XML file, DOM is
> translating special characters "<" and ">" into text strings, such as
> Do you know of a way to instruct DOM to not do this conversion when it
> places content into the XML document?
Then it wouldn't be a well-formed XML document.
Either you insert the HTML as character data (in which case you'll have to
live with the escaping), or use XHMTL instead, parse into the DOM, and
insert the sub tree. Then the HTML will be handled just like any kind of
- help needed
- From: Jerry Johns <Jjohns@computerlogic.com>