XML Declaration in an HTML Page

Don Park donpark at quake.net
Sun Mar 8 03:42:01 GMT 1998


>Once again, I am wondering how you might embed an XML file into a HTML page
>through Microsoft's XML Parser.   If anyone knows, please e-mail me back.

You will not be able to embed arbiturary XML data into HTML.  Some filtering
and transformation is required to make sure everything is digestable by HTML
browsers and processors.  I assume that you are planning to bracket the XML
data with an HTML tag which prevents rendering and access the XML elements
through DOM from a scripting language like JavaScript.

I do not see any serious problem with what you are trying to do.  If you are
looking for some guidelines in removing HTML hostile constructs of XML, I
suggest you read the HTML spec.  If you are looking for some software to do
this, I do not think there is anything available at this time but it should
be easy to write a SAX application which reads in XML resources and writes
out HTML-friendly XML.


Don Park

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list