AI-generated Key Takeaways
- 
          A generic XML node is represented by this class. 
- 
          It has implementing classes for various XML node types like Cdata, Comment, DocType, Element, EntityRef, ProcessingInstruction, and Text. 
- 
          Methods allow casting the node to specific types, detaching it from its parent, getting the parent element, determining its type, and retrieving its text value. 
A representation of a generic XML node.
Implementing classes
| Name | Brief description | 
|---|---|
| Cdata | A representation of an XML CDATASectionnode. | 
| Comment | A representation of an XML Commentnode. | 
| Doc | A representation of an XML Documentnode. | 
| Element | A representation of an XML Elementnode. | 
| Entity | A representation of an XML Entitynode. | 
| Processing | A representation of an XML Processingnode. | 
| Text | A representation of an XML Textnode. | 
Methods
| Method | Return type | Brief description | 
|---|---|---|
| as | Cdata | Casts the node as a CDATASectionnode for the purposes of autocomplete. | 
| as | Comment | Casts the node as a Commentnode for the purposes of autocomplete. | 
| as | Doc | Casts the node as a Documentnode for the purposes of autocomplete. | 
| as | Element | Casts the node as an Elementnode for the purposes of autocomplete. | 
| as | Entity | Casts the node as a Entitynode for the purposes of autocomplete. | 
| as | Processing | Casts the node as a Processingnode for the purposes of autocomplete. | 
| as | Text | Casts the node as a Textnode for the purposes of autocomplete. | 
| detach() | Content | Detaches the node from its parent Elementnode. | 
| get | Element | Gets the node's parent Elementnode. | 
| get | Content | Gets the node's content type. | 
| get | String | Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document. | 
Detailed documentation
asCdata() 
Casts the node as a CDATASection node for the purposes of autocomplete. If the
node's Content is not already CDATA, this method returns null.
Return
Cdata — the CDATASection node
asComment() 
Casts the node as a Comment node for the purposes of autocomplete. If the node's
Content is not already COMMENT, this method returns null.
Return
Comment — the Comment node, or null if the node's content type is not COMMENT
asDocType()  
Casts the node as a Document node for the purposes of autocomplete. If
the node's Content is not already DOCTYPE, this method returns null.
Return
Doc — the Document node
asElement() 
Casts the node as an Element node for the purposes of autocomplete. If the node's
Content is not already ELEMENT, this method returns null.
Return
Element — the Element node
asEntityRef()  
Casts the node as a Entity node for the purposes of autocomplete.
If the node's Content is not already ENTITYREF, this method returns
null.
Return
Entity — the Entity node
asProcessingInstruction()  
Casts the node as a Processing node for the purposes of autocomplete. If
the node's Content is not already PROCESSINGINSTRUCTION, this method
returns null.
Return
Processing — the Processing node
asText() 
Casts the node as a Text node for the purposes of autocomplete. If the node's Content is not already TEXT, this method returns null.
Return
Text — the Text node
detach()
getParentElement()  
getType() 
getValue() 
Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document.
Return
String — the text value of all nodes that are direct or indirect children of the node