XMLParser now able to parse objects to xml

Manual inspection of parsed xml confirms correctness for these two
examples.