Gambas Documentation - /comp/gb.xml/xmlelement/allchildnodes

/comp/gb.xml/xmlelement/allchildnodes

# XmlElement.AllChildNodes (gb.xml)

Property Read AllChildNodes As XmlNode[]

Returns all the children of this element, i.e. the children of this element, with the children of each children of this element, with the children of each children of each children of this element, and so on ...

The children are returned linearly, in the order they are found in the tree. For exemple, reading this property of the root element of this document :

      <?xml version="1.0" encoding="UTF-8"?>
      <root>
        <foo>Hello<bar> World</bar></foo> !
      </root>

... will return in that order :

`"foo" element, "Hello" text node, "bar" element, " World" text node, " !" text node`.