Re: Parsing HTML

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
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
>[email protected]
>_______________________________________________
>XMLC mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/xmlc
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.