On Thu, 30 Jun 2005 10:45:36 +0800, ken wrote:

> Now i want to convert this html string into a DOM document so that I can 
> manipulate it .
> How am i suppose to do this ? 

like this:

parser = Components.classes["@mozilla.org/xmlextras/domparser;1"]
                   .createInstance(Components.interfaces.nsIDOMParser);

xml = parser.parseFromString(content, "text/xml");


cheers,

 / pit


_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to