[thelist] Storing HTML in XML files

Jason Bauer jbauer at mtu.edu
Thu May 16 15:06:01 CDT 2002


At 10:03 PM 5/15/02 +0100, you wrote:
>If I want to store chunks of HTML in an XML file is it completely
>necessary to escape the <> signs?

As long as your HTML is formatted to XHTML specifications (closed empty
tags, quoted attribute values, etc.), then it will be considered
well-formed XML and your parser should have no problem with it., without
having to escape the brackets. If you are using a DTD, you will have to
make sure that the element that stores the HTML can have any HTML element
beneath it.


--
Jason Bauer
jbauer at mtu.edu
Michigan Tech Fund
Web Site Coordinator
http://www.mtf.mtu.edu/




More information about the thelist mailing list