Parsing an XML document and displaying node type and content