System.Xml.Linq
4.0.0.0
System.Xml.Linq.XNode
XML elements can contain text content. Sometimes the content is simple (the element only contains text content), and sometimes the content is mixed (the contents of the element contains both text and other elements). In either case, each chunk of text is represented as an node.
sqltecxlinq developers will often have to write code to work with arbitrary sqltecxlinq trees that they did not create. If you are writing code that has to work with sqltecxlinq trees that you have no control over creating, you should be aware of certain behaviors of nodes.
When processing the contents of an XML tree at the node level, you should be prepared for multiple nodes to be adjacent to each other. Further, you should be prepared for nodes that contain no text. It is possible through sqltecxlinq methods to remove the content of a text node. However, sqltecxlinq does not automatically delete the node. The node has identity, and might have annotations, so sqltecxlinq allows for zero-length nodes in the tree.
For more information, see Programming With Nodes.
Represents a text node.
Constructor
4.0.0.0
You typically do not create text nodes by using the constructors. When you pass text content when constructing an , text nodes are automatically created.
Initializes a new instance of the class.
The that contains the value of the node.
Constructor
4.0.0.0
This constructor is primarily used internally to make a deep copy of an XML tree.
Initializes a new instance of the class from another object.
The node to copy from.
Property
4.0.0.0
System.Xml.XmlNodeType
To be added.
Because all classes that derive from contain a property, you can write code that operates on collections of concrete subclass of . Your code can then test for the node type of each node in the collection.
Gets the node type for this node.
Property
4.0.0.0
System.String
To be added.
Setting this property will raise the and the events.
Gets or sets the value of this node.
Method
4.0.0.0
System.Void
This method is primarily used internally by the methods that write an XML tree to an .
Writes this node to an .
An into which this method will write.