Node.isleaf readonly

A read-only boolean property indicating whether this node has no child nodes.

Example

--! luart-extensions import xml xml = require("xml") local n = xml.Node("item") print(n.isleaf) -- true n:add("child") print(n.isleaf) -- false