Finally figured out how to get tostring() to convert xml structure.