How to prevent an empty parent node from appearing in XML output when no child data is present

The Data Mapper will always write out mandatory items into the output XML document. Changing mandatory item to be optional in the XML Schema and refreshing the Data Mapper should prevent the node from appearing in the XML document.

However, if there is no connection to an output node which has child nodes then the node is always automatically created.

E.g. Using the follow example XML Schema:
and the following JSON to XML Data Mapping:

will produce output:
<!--Created by Liquid Data Mapper Libraries (www.liquid-technologies.com) for Liquid Technologies Ltd -->
<house>
	<pets />
</house>

even though the input data (an empty JSON Document { }) contains no pets.

To workaround this, we need to connect the pets node using a combination of the dogs and cats nodes as follows:
this then gives the required output:
<!--Created by Liquid Data Mapper Libraries (www.liquid-technologies.com) for Liquid Technologies Ltd -->
<house />