That's pretty much what I want to do. I guess my question now is how do I
create a document from the file? I know how to compile a document, but I
don't know how to load a HTML document into a DOM tree at runtime.
At 12:12 PM 3/24/2003, you wrote:
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.
--
Ben Sinclair
ben@xxxxxxxxxxxxxxx
|