abstract class
XML::DOM::Document
- XML::DOM::Document
- XML::DOM::Node
- Reference
- Object
Included Modules
Direct Known Subclasses
Defined in:
dom/document.crConstructors
Instance Method Summary
- #==(other : Document) : Bool
-
#canonicalize : Nil
Replaces cdata sections with a text node.
- #clone : self
- #doctype : DocumentType
- #doctype=(doctype : DocumentType)
- #doctype? : DocumentType | Nil
-
#normalize : Nil
Merges contiguous text nodes into a single node.
- #root : Element
- #root=(root : Element)
- #root? : Element | Nil
- #text_content : String | Nil
Instance methods inherited from module XML::DOM::ParentNode
child_element_count : Int32
child_element_count,
each_element_child(& : Element -> ) : Nil
each_element_child,
first_element_child : Elementfirst_element_child(& : -> U) : Element | U forall U first_element_child, first_element_child? : Element | Nil first_element_child?, last_element_child : Element
last_element_child(& : -> U) : Element | U forall U last_element_child, last_element_child? : Element | Nil last_element_child?
Instance methods inherited from class XML::DOM::Node
==(other : Node) : Bool
==,
append(node : Node) : Nil
append,
canonicalize : Nil
canonicalize,
clone : self
clone,
each_child(& : Node -> ) : Nil
each_child,
first_child : Nodefirst_child(&) first_child, first_child? : Node | Nil first_child?, insert(node : Node, *, before : Node | Nil) : Nil
insert(node : Node, *, after : Node | Nil) : Nil insert, last_child : Node
last_child(&) last_child, last_child? : Node | Nil last_child?, next_sibling : Node next_sibling, next_sibling? : Node | Nil next_sibling?, normalize : Nil normalize, owner_document : Document owner_document, parent_element : Element parent_element, parent_element? : Element | Nil parent_element?, parent_node : Node parent_node, parent_node? : Node | Nil parent_node?, previous_sibling : Node previous_sibling, previous_sibling? : Node | Nil previous_sibling?, remove_child(node : Node) : Nil remove_child, replace_child(node : Node, *, child : Node) : Nil replace_child, root_element : Element root_element, root_element? : Element | Nil root_element?, root_node : Node root_node, root_node? : Node | Nil root_node?, text_content(str : String::Builder) : Nil
text_content : String | Nil text_content
Constructor Detail
Instance Method Detail
def canonicalize : Nil
#
Description copied from class XML::DOM::Node
Replaces cdata sections with a text node. Merges contiguous text nodes into a single node. Removes comment nodes. Applies to the whole subtree.
def normalize : Nil
#
Description copied from class XML::DOM::Node
Merges contiguous text nodes into a single node. Applies to the whole subtree.