Skip to main content

Name

node:children — Return an iterator of all child nodes

Synopsis

require('xml');

node:children();

Description

Return an iterator of all child nodes of the specified node. Any text nodes are also included.

for child in node:children() do
  print(child:name());
end

See Also

Was this page helpful?