(刚刚接触,不一定对.)
问题:1. xml model
xml data model用于将数据分组,以方便交互。xml data model对于forms global page, 是可选的。
通常,model在form的最开头。格式如下:
<globalpage sid="global">
<global sid="global">
<xmlmodel xmlns:xforms="http://www.w3.org/2003/xforms"> // xforms is the namespace, the url is an identtity, not visit that url truly. xmlns is for namespace declare.
<instances>
...all data instances....
</instances
<bindings>
...all bindings....
</bindings>
<submissions> .
..all submissions....
</submissions>
<schemas>
...schemas...
</schemas>
<datafragments> .
..all datafragments...
</datafragments>
</xmlmodel>
</global>
</globalpage>