parseXMLAndAdd function

Parse XML content and add it to a node