Mark Logic
Scaffolding closed. See found solution above
XSD - DDL (Draft 0.1)

Mapping XML Documents on Relational DB
Document and documentFragment serialization from DB Tables
Creating DDL, database schema from XSD

Note: this document is just a scaffolding

The best article found : Automation of Metadata Repository Development with XML Schema

Tables

Constraints, Database triggers, Stored procedures

Depend on target DB
To be defined later

Xml serialization: xmlsql

Returns either XML_Document or XML_DocumentFragment
importRef(): List of QNames of elements to be included when a reference to occurs via IDREF(S) or keyref
They are included with their descendants (deep mechanism) and their parent are append to top level XML element

Usage:

  1. aDocument = xmlsql (null, null, aList, null, false)
  2. aFragment = xmlsql (createElement('topElementName'), "select * from nodesTable where localName in someList", aList, null, false)

DDL generation from XSD

End