U
uv2003
Greetings,
I've been searching for a way to use the W3 DOM Level 1 interfaces in a
native .NET implementation without any luck. Does anyone know if
something like this exists?
Specifically, I'm refering to this:
http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html
So far, I've seen a lot of people mention MSHTML or the Web Browser
control. These are not viable options since I'm writing a class library
that I want to be 100% .NET managed code and depend on nothing but the
CLR and the base framework.
The best starting point I've seen so far is Simon Mourier's
HTMLAgilityPack http://smourier.blogspot.com/. This is a great library
for parsing HTML into a navigable structure, even malformed html, but
it does not implement the W3 interfaces.
I'd like to be able to parse a document into a DOM tree, then perform
standard calls the same way you would do in JavaScript in the web
browser regarding FORM element collections:
Javascript:
document.forms[0].elements[0].options[0] ... etc etc
Pseudo .net:
using W3.DOM.Level1;
Document d = new Document(htmlDataStringFromSomeFileOrDownload);
d.forms[0].elements[0].options[0] .....
I'd like to be able to programmatically navigate through the form
elements and then programmatically issue a POSTBACK to the server this
way.
Thank you,
Josh
I've been searching for a way to use the W3 DOM Level 1 interfaces in a
native .NET implementation without any luck. Does anyone know if
something like this exists?
Specifically, I'm refering to this:
http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html
So far, I've seen a lot of people mention MSHTML or the Web Browser
control. These are not viable options since I'm writing a class library
that I want to be 100% .NET managed code and depend on nothing but the
CLR and the base framework.
The best starting point I've seen so far is Simon Mourier's
HTMLAgilityPack http://smourier.blogspot.com/. This is a great library
for parsing HTML into a navigable structure, even malformed html, but
it does not implement the W3 interfaces.
I'd like to be able to parse a document into a DOM tree, then perform
standard calls the same way you would do in JavaScript in the web
browser regarding FORM element collections:
Javascript:
document.forms[0].elements[0].options[0] ... etc etc
Pseudo .net:
using W3.DOM.Level1;
Document d = new Document(htmlDataStringFromSomeFileOrDownload);
d.forms[0].elements[0].options[0] .....
I'd like to be able to programmatically navigate through the form
elements and then programmatically issue a POSTBACK to the server this
way.
Thank you,
Josh