An XPath based filtering mechanism for xml files