Can we construct a HTMLDocument? I mean something like
this
string outerHTML = "<HTML><BODY>So me sample
text...</BODY></HTML>";
HTMLDocument doc = new HTMLDocument();
doc.addElement( "HTML");
doc.all.item("H TML", 0).outerHTML = outerHTML;
Actually I have a url, I need to build a HTMLDocument
from the source of that url. Is there any method o build
a HTMLDocument from url. I tried the createDocumentF romUri
() method of HTMLDocument class, but it is throwing an
exception with message access denied, the url
being "http://localhost/test/test.html"
Can anybody throw some light on this?
Kavitha
this
string outerHTML = "<HTML><BODY>So me sample
text...</BODY></HTML>";
HTMLDocument doc = new HTMLDocument();
doc.addElement( "HTML");
doc.all.item("H TML", 0).outerHTML = outerHTML;
Actually I have a url, I need to build a HTMLDocument
from the source of that url. Is there any method o build
a HTMLDocument from url. I tried the createDocumentF romUri
() method of HTMLDocument class, but it is throwing an
exception with message access denied, the url
being "http://localhost/test/test.html"
Can anybody throw some light on this?
Kavitha
Comment