Parse and creare XML-document