[quoted text, click to view] Edgardo Rossetto wrote:
[quoted text, click to view] > - Does anyone know a HTML 4.01 / XHTML implementation of the DOM, or is
> only System.Xml (XML 1.0 and 2.0 only AFAIK) avaiable?
If you are asking about the W3C DOM Level 1 or Level 2 HTML, no, at
least the classes provided by MS as the .NET SDK do not implement that,
I have never looked for third party implementations in .NET so I don't
know about that.
As for .NET's System.Xml and the W3C DOM standards, I think W3C DOM
Level 1 XML, W3C DOM Level 2 Core and XML are there, but as already
explained making use of overloading for instance which the .NET
framework supports while the W3C DOM has avoided it to allow bindings to
script languages like JavaScript(ECMAScript), and with some other
deviations (nodeValue in the W3C DOM is Value in the .NET SDK).
W3C DOM Level 2 mutation events also have some counterpart in the .NET
SDK with the NodeChanged, NodeChanging, NodeInserted, NodeRemoved etc
events the XmlDocument has.
[quoted text, click to view] > Is it possible to "load" the DTD specification for HTML 4.01 / XHTML
> using the System.Xml namespace or am I just dreaming?
The XHTML DTDs are XML DTDs so System.Xml should be able to handle them.
There are also schemas for XHTML which System.Xml with its schema
support should be able to handle.
For reading HTML there is SgmlReader:
<
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC> You can use that to read in HTML (valid and "tag soup" as found on the
web) and then for instance create a .NET XmlDocument.
--
Martin Honnen