1. A method for an implementation of XML Query language, comprising the steps of: analyzing an XML query; creating a token stream representation of at least one XML document required to process said XML query; transforming said XML query into a second query that can work on said token stream representation; and, executing said second query on said token stream representation.