我有一些混乱的类型 simpletype,simplecontent,complextype和complexcontent.
我几乎是xsd的新手.有人可以帮助清除给出具体例子的困惑.
什么是复杂元素?
复杂元素是包含其他元素和/或属性的XML元素。有四种复杂元素:
Note: Each of these elements may contain attributes as well!
Examples of Complex Elements
A complex XML element, "product", which is empty:
<product pid="1345"/>
A complex XML element, "employee", which contains only other elements:
<employee>
<firstname>Deepam</firstname>
<lastname>Gupta</lastname>
</employee>
A complex XML element, "food", which contains only text:
<food type="dessert">Chapati</food>
A complex XML element, "description", which contains both elements and text:
<description>
It happened on <date lang="hindi">18.03.99</date> ....
</description>
| 归档时间: |
|
| 查看次数: |
16109 次 |
| 最近记录: |