I opted against `innerText` because it does indeed return the text of the node and all it's children: import xmltree var e = newElement("child1") e.add newText(" jibber") var f = newElement("child2") f.add newText(" jabber") var x = newXmlTree("root", [e, f]) x.add newText(" some text") echo x echo x.innerText Run
gives: <root><child1> jibber</child1><child2> jabber</child2> some text</root> jibber jabber some text Run and I just want: some text Run So I posit that the `text` proc is broken, or at the very least, `xmltree` library is missing a `nodeText` proc that returns the text as string for that node only.