Re: parsing XML within HTML files

Lars Marius Garshol (larsga@ifi.uio.no)
Fri, 04 Sep 1998 23:05:25 +0200


* 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.

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.

<URL:http://www-uk.hpl.hp.com/people/ak/java/hex.html>

--Lars M.