XMLFile::load returns document as a result