to the main page... about these slides...

Creating an explicit root element

Every XML document must have a single root.

XML-QL supplies an <XML> element as default, but others may be specified:
  CONSTRUCT <results> { 
   WHERE <bib><book>
           <publisher> <name>"Addison-Wesley" </> </>
           <title>  $t </>
           <author> $a </>
         </></> IN "bib.xml"
   CONSTRUCT <result>
                <author> $a </>
                <title>  $t </>
             </>
  } </results>