XML Data can be written as is in XQuery and will be found in the output.
The following code can be considered valid XQuery :
<application>
<id>MyApp</id>
<name>My Application</name>
<version>1.0</version>
</application>
Note that your XQuery code must produce a valid XML document and as such is restricted to output all its data in a single root tag.
Moreover, by default most XQuery implementations will add the XML header if you omit it. By example, the above code would produce this result :
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id>MyApp</id>
<name>My Application</name>
<version>1.0</version>
</application>