each(Node)
Node object is iterable through the Luart helper function each(), returning the next Node's child with each loop iteration.Example
--! luart-extensions
import xml
xml = require("xml")
local root = Node("root")
root:add("child1", "Hello")
root:add("child2", "World")
for child in each(root) do
print(child.name, child.content)
end