Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSD based on SQL Query

165056Jun 25 2007 — edited Jun 26 2007
Hi,

I'm trying to generate XML schema (XSD) based on custom queries (using a number of tables and views). I tried using DBMS_XMLQUERY.getXML() and passing DBMS_XMLQUERY.SCHEMA constant. It generates the XML for resulting recordset along with an Internal Schema. I know that DBMS_XMLQUERY.getDTD() can generate DTDs for a given query context. But unfortunately, I could not find any function or procedure to generate seperate XSD!

There is another choice for generating XSDs, that is using DBMS_XMLSCHEMA.GENERATESCHEMA(). But that only works with ORACLE Types. So, I can't use that.

Can Anyone help?

Cheers,
Arif Rahman
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2007
Added on Jun 25 2007
1 comment
268 views