previous  next

Parsing XQuery (XML)

The Xq2xml class provides the same information as XML.

  <XPath2>
    <QueryList>
      <Module>
	<MainModule>
	  <Prolog/>
	  <QueryBody>
	    <Expr>
	      <AdditiveExpr><data>+</data>
	      <PathExpr>
		<IntegerLiteral><data>1</data></IntegerLiteral>
	      </PathExpr>
	      <PathExpr>
		<IntegerLiteral><data>2</data></IntegerLiteral>
	      </PathExpr>
	      </AdditiveExpr>
	    </Expr>
	  </QueryBody>
	</MainModule>
      </Module>
    </QueryList>
  </XPath2>