-- using xml query

use xmldb
go


select invoice::query('
    (: XQuery program :)

  ') as xmldoc
 from xmlinvoice
go

select invoice::query('
    (: XQuery program :)

  ') as xmldoc
 from xmlinvoice
go