473,785 Members | 2,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does W3 DOM Level 1 (HTML) Support on the .NET platform exist anywhere?

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-Le...-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(htmlDa taStringFromSom eFileOrDownload );

d.forms[0].elements[0].options[0] .....

I'd like to be able to programmaticall y navigate through the form
elements and then programmaticall y issue a POSTBACK to the server this
way.

Thank you,
Josh

Nov 19 '05 #1
3 1423
W3C dom is for browsers or html parsers. Microsoft does not supply a HTML
parser for .net. the best they have is an interop wrapper around the IE web
control (which is a com wrapper around the mshtml com object).

you might look for one of the java libraries, and port it to .net (j#). also
you might look at unitASP which uses the .net control name approach.
-- bruce (sqlwork.com)


"uv2003" <js*****@mindsp ring.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
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-Le...-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(htmlDa taStringFromSom eFileOrDownload );

d.forms[0].elements[0].options[0] .....

I'd like to be able to programmaticall y navigate through the form
elements and then programmaticall y issue a POSTBACK to the server this
way.

Thank you,
Josh

Nov 19 '05 #2
Thanks, Bruce. I thought about doing that with a Java library, but I
thought that this must have been done somewhere. It seems common on
other platforms.

Josh

Nov 19 '05 #3
historically, on ms platforms, which were com-based, the mshtl control was
the best rendering engine. it has perfomance problems at server loads, but
has parsing, bitmap rendering and printing.

-- bruce (sqlwork.com)
"uv2003" <js*****@mindsp ring.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
Thanks, Bruce. I thought about doing that with a Java library, but I
thought that this must have been done somewhere. It seems common on
other platforms.

Josh

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2165
by: Grant Edwards | last post by:
I've read over and over that Python leaves floating point issues up to the underlying platform. This seems to be largely true, but not always. My underlying platform (IA32 Linux) correctly handles 1.0/0.0 and 0.0/0.0 according to the IEEE 754 standard, but Python goes out of its way to do the wrong thing. 1/0 is defined by the standard as +Inf and 0/0 is NaN.
2
2005
by: John | last post by:
The following code works OK in IE 6.0 but does not work in Netscape 7. The image does not shift when one scrolls down but stays stationary in Netscape. Please help Thank you John function moveImage(e){ //shift image according to scroll
38
3365
by: Martin Marcher | last post by:
Hi, I've read several questions and often the answer was 'C knows nothing about .' So if C knows that little as some people say, what are the benefits, I mean do other languages know more or is it a benefit that C knows nearly nothing (what I can think about is that C is the largest common divisor defined on most available platforms)?
43
8732
by: Minti | last post by:
Hi there everybody, I was just wondering that too many people choose to use language like Java because of its architecture independence, this AI is achieved because Java is as such a platform indeed, the code is converted to a byte code and this byte code can be run on any machine which has
58
30252
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly neighborhood C# programmer? The standard answer I get from computer sales people is: "It means that the CPU can process 64 bits of data at a time instead of 32." Ok... I guess I *kind* of understand what that means at an intuitive level, but what...
25
5651
by: Peter Michaux | last post by:
Hi, I'm thinking about code minimization. I can think of a few places where whitespace matters a + ++b a++ + b a - --b a-- -b when a line ends without a semi-colon in which case the new line
55
6248
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in C# in some way? Or maybe no, because it is similar to a global variable (with its scope restricted) which C# is dead against? Zytan
11
7881
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG' does not exist drop table log_errors_tab;
5
3466
by: =?Utf-8?B?bXBhaW5l?= | last post by:
Hello, I am completely lost as to why I can't update a DropDownList inside a DetailsView after I perform an insert into an object datasource. I tried to simply it down to the core demostration: default.aspx:
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.