Xquery XML

File: Data.xml
File: Query.xquery
    {
      ,
      processing-instruction doc-processor2 {'version="4.3"'},
      processing-instruction {concat("doc-processor", "3")}
            {concat('version="', '4.3', '"')}
    }

Output: