I'm implementing a function doing xml signature with libxml. How could I add sibling nodes to root node?
original xml:
<?xml version="1.0"?>
<object>
...
</object>
what I want:
<?xml version="1.0"?>
<object>
...
</object>
<additional node>
...
</additional node>
After parsing, the object node will be the root node, so I can't use xmlNewChild. What function should I use to achieve what I want.
Thank you.