XML Handling

-- implement first version of XML handling