> parser = Components.classes["@mozilla.org/xmlextras/domparser;1"]
>                   .createInstance(Components.interfaces.nsIDOMParser);
>
> xml = parser.parseFromString(content, "text/xml");
 
It does not seems to return,  exact "nsIDOMDocument " object. Is there any other way to get "nsIDOMDocument " object from HTML text.
 
-Hitesh.
"pit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> 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
> Mozilla-netlib@mozilla.org
> http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to