Skip to Main Content
C# in a Nutshell
book

C# in a Nutshell

by Ben Albahari, Ted Neward, Peter Drayton
March 2002
Intermediate to advanced content levelIntermediate to advanced
864 pages
31h 8m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell

Name

XmlNode

Synopsis

This abstract class represents a node in a document. A node is the basic object described by the Document Object Model for XML. A node can be an element, an element’s attributes, the DOCTYPE declaration, a comment, or the entire document itself. Nodes are ordered in a hierarchical tree in which child, parent, and sibling relationships are “known” by each node.

The XmlNode class is the parent object of the specific node type classes. The properties of this class expose the intrinsic values of the node: NamespaceURI, NodeType, parent, child, sibling nodes, etc. The methods allow a node to add to or remove from a node tree (in the context of an XmlDocument or XmlDocumentFragment), with respect to a reference node.

public abstract class XmlNode : ICloneable, IEnumerable, System.Xml.XPath.IXPathNavigable {
// Public Instance Properties
   public virtual field XmlAttributeCollection Attributes{get; } 
   public virtual field string BaseURI{get; } 
   public virtual field XmlNodeList ChildNodes{get; } 
   public virtual field XmlNode FirstChild{get; } 
   public virtual field bool HasChildNodes{get; } 
   public virtual field string InnerText{set; get; } 
   public virtual field string InnerXml{set; get; } 
   public virtual field bool IsReadOnly{get; } 
   public virtual field XmlNode LastChild{get; } 
   public abstract field string LocalName{get; } 
   public abstract field string Name{get; } 
   public virtual field string NamespaceURI{get; } 
   public virtual field XmlNode NextSibling{get; } public abstract ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 in a Nutshell

C# 8.0 in a Nutshell

Joseph Albahari, Eric Johannsen
C# 10 in a Nutshell

C# 10 in a Nutshell

Joseph Albahari
C# in a Nutshell, Second Edition

C# in a Nutshell, Second Edition

Peter Drayton, Ben Albahari, Ted Neward
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 0596001819Catalog PageErrata