logo       

Re: Parsing HTML: msg#00075

java.enhydra.xmlc

Subject: Re: Parsing HTML

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
ben@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise