Hi, I have a requirement to serialize a portion of an HTML Document to a string that contains the equivalent HTML. This is inside a XUL app, using Javascript. I'm trying to find a scriptable component to do this.
I found the following things related to what I'm trying to do: nsIDOMSerializer interface. (serializeToString(nsIDOMNode) is exactly! what I want to do) nsIDocumentEncoder.h [which has an IID defined but no corresponding IDL] and the suite of content-serializer/document-encoder components that take MIME types as arguments (all of which only support nsISupports). e.g. @mozilla.org/layout/contentserializer;1?mimetype=text/html I'm not able to connect all these pieces of information to come up with a simple solution to my problem. Any help will be appreciated. Thanks, Krishnan.
