XML/XQuery/processing instructions
Processing instruction constructors
File: Data.xml
File: Query.xquery
<ul>{
<?doc-processor version="4.3"?>,
processing-instruction doc-processor2 {"version="4.3""},
processing-instruction {concat("doc-processor", "3")}
{concat("version="", "4.3", """)}
}</ul>
Output:
<?xml version="1.0" encoding="UTF-8"?>
<ul><?doc-processor version="4.3"?><?doc-processor2 version="4.3"?><?doc-processor3 version="4.3"?></ul>