Transforming an XML document "<root />" into "<root><empty /></root>" idempotently with #Augeas:
set root ''
set root/empty #empty
Augeas will not add children to an empty element (i.e. a self-closing tag), you must first turn it into an element with an opening and a closing tag (by setting it's content to an empty string), then you can add children…