add xml-declaration + log parsed document
cont'd work on serialization