node:doc

March 26, 2020

Name

node:doc — Return the document object that contains the specified node

Synopsis

require('xml');

node:doc();

Description

Return the document object that contains the specified node.

local doc = node:doc();
print(doc:tostring());

See Also

doc:tostring and xml.parsexml