How can I print XML node names and values in C