Document Object Model

.NET provides an implementation of the Document Object Model (DOM) that offers broadly the same functionality as that provided by Java. Instead of undertaking a detailed description of the complete DOM API, we’ll restrict our discussion to highlighting some of the key differences between the Java and .NET implementations. A Java developer familiar with the use of DOM will find few problems working with the .NET implementation.

Key Classes

The Java DOM API is specified almost exclusively by using interfaces, whereas .NET uses predominantly classes. However, apart from three new node types defined by Microsoft, there is a direct mapping between the .NET classes, the Java interfaces, and the node types specified in the DOM specification. ...

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.