Subject:How to generate XML with processing instructions Author:David Jaramillo Date:10 Feb 2006 04:12 AM
can anybody tell me how to output an xml file using xquery, which contains processing instructions?
for instance to include the prolog of the xml document like:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE mymodel SYSTEM "http://www.test.com/model.dtd">
You won't see PI or DOCTYPE when run in XQuery editor, but if you generate Java code (XQuery > Generate Java Code) and run it, you will see the DOCTYPE is generated; you probably need to serialize the result in a way different from what the generated Java code is doing to also see the XML PI.