> 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 |
- Convert HTML string into DOM document for manipulation ken
- Re: Convert HTML string into DOM document for man... pit
- Re: Convert HTML string into DOM document for man... Ken Theng
- Re: Convert HTML string into DOM document for... Boris Zbarsky
- Re: Convert HTML string into DOM document for man... Hitesh Khamesra
- Re: Convert HTML string into DOM document for... Fritz Schneider
- Re: Convert HTML string into DOM document for... Christian Biesinger