Framework for extracting particular data from arbitrary text using XML-rulesets