I am unable to find information on creating an xml schema for datasources. How can I map a many to one relationship between two datasource xml’s and what other attibutes are available on a xml field. (Is there an xml template for the sql connector?)
You probably want to use option #2 with SQL. There is not currently support for automatically populating a nested structure with SQL tables, or doing the appropriate series of adds, removes and deletes on save of a nested structure. You can do it yourself of course, but it’s probably simpler to just treat the objects independently.
If you’re trying to do something like populate a table with related records from the child DataSource, see ListGrid.fetchRelatedData() and see also the SQL templating examples (such as Large Value Map) to see how to do joins.