Fix xml parsing in KnowledgeBaseReader.