Re: Parsing HTML

Ben Sinclair <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
I have main pages that are XMLC compiled HTML files, which contain the UI 
and other things. For branding purposes, I need to wrap these in a custom 
header and footer at runtime. If I really have to, I could make it compile 
HTML files when people change them somehow, but I'd rather not.

Right now I'm just using LazyText to insert the header and footer into my 
main compiled XMLC class. This doesn't work right because the header 
contains duplications of the html, body, and other tags.

At 11:53 AM 3/24/2003, Richard Kunze wrote:

>Maybe I'm misinterpreting what you want to accomplish, but why don't you
>simply compile the "template" file with XMLC (just like any other file *ML)
>and then use the normal DOM and XMLC API to extract the node from the
>template document and insert it into the individual files?

--
Ben Sinclair
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.