Using OpenXml to map hierarchic XML to SQL  Example 9

Chapter 2: XML Services

Example 8

This example shows four client command line calls to extract the depts, emps, emp_phones, and projects tables from the XML document.

java jcs.xmlutil.OpenXml -i "file:example-document.xml"  \
     -r "file:depts.opt"  -o "depts.sql"

java jcs.xmlutil.OpenXml -i "file:example-document.xml"  \
       -r "file:emps.opt"  -o "emps.sql" 

java jcs.xmlutil.OpenXml -i "file:example-document.xml"  \
       -r "file:emp-phones.opt"  -o "emp-phones.sql"

java jcs.xmlutil.OpenXml -i "file:example-document.xml"  \
       -r "file:projects.opt"  -o "projects.sql" 




Copyright © 2004. Sybase Inc. All rights reserved. Example 9

View this book as PDF