I'm running into an issue using Groovy to add new child nodes to an XML Document. I don't want any children in the new node, it's just a placeholder at this point. Basically, the code looks like
trans = new Node(parent, translationsName, new HashMap(), new HashMap(), "")
parent.children.add(trans)
However, when I check the XML, all that is added is
<NODE/>
When what I want is something like...
<NODE>
</NODE>
I've been scouring the internet and reading the documentation, but to no avail. Does anyone have any experience with this? I can't seem to figure out what I'm doing wrong. Thanks!