renamed _doc, added documentation to XMLService