XmlNode objects created have a
ownerDocument attribute which associates them with the
XmlDocument within whose context they were created.
See also the Document Object Model (DOM) Level 3 Core Specification.
| Return Type | Signature | 
|---|---|
| 
          
            CreateAttribute( | |
| 
          
            CreateCDATASection( | |
| 
          
            CreateComment( | |
| 
          
            CreateElement( | |
| 
          
            CreateElementNS( | |
| 
          
            CreateTextNode( | |
| Type | Property | 
|---|---|
Attr of the given name.
Note that the
XmlNode instance can then be set on an XmlNode
using the AppendChild method.
CreateAttributeNS method.
    
      
XmlNode      CreateAttribute(
  string data)
    
  
| Name | Description | 
|---|---|
| data | 
The data for the node.
 | 
CDATA node given the specified string.
    
      
XmlNode      CreateCDATASection(
  string data)
    
  
| Name | Description | 
|---|---|
| data | 
The data for the node.
 | 
Comment node given the specified string.
    
      
XmlNode      CreateComment(
  string data)
    
  
| Name | Description | 
|---|---|
| data | 
The data for the node.
 | 
tagname. Note that the instance
returned implements the XmlNode interface, so attributes
can be specified directly on the returned object.
CreateElementNS method.
    
      
XmlNode      CreateElement(
  string tagname)
    
  
| Name | Description | 
|---|---|
| tagname | 
The name of the element type to instantiate. This is case-sensitive. | 
XmlNode interface, so attributes
can be specified directly on the returned object.
    
      
XmlNode      CreateElementNS(
  string namespaceURI,
  string qualifiedName)
    
  
| Name | Description | 
|---|---|
| namespaceURI | The namespace URI of the element to create. | 
| qualifiedName | 
The qualified name of the element to instantiate.
 | 
XmlNode node given the specified string.
    
      
XmlNode      CreateTextNode(
  string data)
    
  
| Name | Description | 
|---|---|
| data | 
The data for the node.
 | 
XmlDocument.
preserve is true, the original XML is returned, otherwise the XML is normalized.
    
      
string      GetXML(
  optional boolean preserve,
  optional boolean escape)
    
  
| Name | Description | 
|---|---|
| preserve | 
Keep whitespace structure.
 | 
| escape | 
create a string that is XML escaped. | 
XmlNodeList of all the XmlNodes matching a given XPath and contained in the
document.
    
      
XmlNodeList      Query(
  string xpath)
    
  
| Name | Description | 
|---|---|
| xpath | 
The XPath which is evaluated to get the  XmlNodes. | 
XmlNode of the document.
XmlNode documentelement