I need some info related to the XML and what you want as the resulting YAML from it:
Are there going to be empty nodes that need to be preserved, and if so, how do you want them formatted in the YAML:
<example>
<child></child>
<child2 />
</example>
Are there going to be children of the same name, and if so, how do you want them formatted in the YAML:
<example>
<child>text1</child>
<child>text2</child>
</example>
Are any of the nodes going to have attributes that need to be preserved, and If so, how do you want those formatted in the YAML:
<example attr="value">
<child />
</example>
And putting it all together, how would you want something like this formatted in the YAML
<example>
<child attr="value">text</child>
<child />
</example>