As XQuery programs became one of the standard instruments of XML manipulation, for the optimization purposes it is important to identify commonly used constructs and patterns. In this paper we describe the design and implementation of a system for the analysis of XQuery programs, XQ Converter, as the extension of our previously described analytic framework Analyzer.
The XQuery program is converted to an XML representation which allows to formulate analytical queries in XPath. The analysis is based on the frequency of occurrence of various language constructs.