logo       

Re: Parsing HTML: msg#00074

java.enhydra.xmlc

Subject: Re: Parsing HTML


As long as you get a handle on the <head> node in your current DOM tree, you can either delete that one and import a new node and add it, or I think you can just do it in one-fell-swoop and just use replaceNode().

The place where you import the node from may be from some code snippet file or whatever.  I don't know of any XMLC specific functionality to do this.  I think you'd just be dealing with standard DOM stuff using a DOMLoader to create a document from file.  However, there may very well be some utility methods to do this via XMLC that I'm not aware of.

Jake

At 11:17 AM 3/24/2003 -0600, you wrote:
Back to my adding headers and footers at runtime question I asked a few weeks ago...

Is there some functionality in xmlc that will let me open and parse a HTML file at runtime and pull out elements, much like if I have a compiled file? I want to be able to just grab the <head> tag from a file and swap it into my compiled xmlc file, for example.


--
Ben Sinclair
ben@xxxxxxxxxxxxxxx
_______________________________________________
XMLC mailing list
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise