changed a little code(XmlDocumentHandler)