parsing XML within HTML files

Lars Marius Garshol larsga at
Fri Sep 4 23:06:20 BST 1998

* Weihong Xie
>AlL I want to do is in normal HTML files, there will be some customized XML
>tags to mark the places where dynamic values will be inserted, so when the
>servlet serves those pages, it will provide those values but leave the HTML
>text alone. 

In that case you could probably use cpp or just write your own tool that
does the substitution. Mark the places with something like $place$ and that's

It sounds like overkill to use XML for this.

>The question is how I can do this, do I need a DTD that defines
>HTML and my customized tags or is there any XML parsers understand HTML? 

HEX does.


--Lars M.

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

More information about the Xml-dev mailing list