The following command-line call is representative of how you can insert XML data into Adaptive Server from a client file. It copies the contents of the Order.xml file (using the -I parameter) to the Adaptive Server and executes the SQL script (using the -Q parameter) using the contents of Order.xml as the value of the question-mark (?) parameter.
java util.FileUtil -A putstring -I "Order.xml" \ -Q "insert into order_docs (id, order_doc) \ values (‘1’, new xml.order.OrderXml(?)) " \ –S "antibes:4000?user=sa"
The constructor invocation new xml.order.OrderXml
validates
the XML Order document.