added category extractor from xml