From 18055b5bfa47ba7a53b5e893fbc3f5efdb1bf379 Mon Sep 17 00:00:00 2001
From: "arseny.kapoulkine"
node_document
) - this
+ Document node (node_document
) - this
is the root of the tree, which consists of several child nodes. This
node corresponds to xml_document
class; note that xml_document
@@ -83,7 +83,7 @@
node_element
) - this
+ Element/tag node (node_element
) - this
is the most common type of node, which represents XML elements. Element
nodes have a name, a collection of attributes and a collection of child
nodes (both of which may be empty). The attribute is a simple name/value
@@ -100,7 +100,7 @@
and does not have any attributes or child nodes.
node_pcdata
)
+ Plain character data nodes (node_pcdata
)
represent plain text in XML. PCDATA nodes have a value, but do not have
name or children/attributes. Note that plain character data is not a
part of the element node but instead has its own node; for example, an
@@ -114,7 +114,7 @@
has three children, two of which are PCDATA nodes with values "text1"
and "text2"
.
node_cdata
) represent
+ Character data nodes (node_cdata
) represent
text in XML that is quoted in a special way. CDATA nodes do not differ
from PCDATA nodes except in XML representation - the above text example
looks like this with CDATA:
@@ -127,7 +127,7 @@
since it is used to determine the end of node contents.
node_pi
) represent
+ Processing instruction node (node_pi
) represent
processing instructions (PI) in XML. PI nodes have a name and an optional
value, but do not have children/attributes. The example XML representation
of PI node is as follows:
@@ -157,7 +157,7 @@
parse_pi
flag.