JiBX 1.2,第2部分: 从XML模式到Java代码(一) - 编程入门网
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-14
e> <xs:complexType name="item"> <xs:annotation> <xs:documentation>Order line item information.</xs:documentation> </xs:annotation> <xs:sequence/> <xs:attribute type="xs:string" use="required" name="id"> <xs:annotation> <xs:documentation>Stock identifier. This is expected to be 12 characters in length, with two leading alpha characters followed by ten decimal digits. </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute type="xs:int" use="required" name="quantity"> <xs:annotation> <xs:documentation>Number of units ordered.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute type="xs:float" use="required" name="price"> <xs:annotation> <xs:documentation>Price per unit.</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> <xs:complexType name="address"> <xs:annotation> <xs:documentation>Address information.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element type="xs:string" name="street1"> <xs:annotation> <xs:documentation>First line of street information (required). </xs:documentation> </xs:annotation> </xs:element> ... </xs:sequence> <xs:attribute type="xs:string" name="state"> <xs:annotation> <xs:documentation>State abbreviation (required for the U.S. and Canada, optional otherwise).</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute type="xs:string" name="postCode"> <xs:annotation> <xs:documentation>Postal code (required for the U.S. and Canada, optional otherwise).</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> <xs:complexType name="customer"> <xs:annotation> <xs:documentation>Customer information.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element type="xs:long" name="customerNumber"/> ... </xs:sequence> </xs:complexType> <xs:element type="tns:order" name="order"/> <xs:complexType name="order"> <xs:annotation> <xs:documentation>Order information.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ty |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: Java字符集笔记 - 编程入门网下一篇: JBoss集群基础知识 - 编程入门网
关于JiBX 1.2,第2部分: 从XML模式到Java代码(一) - 编程入门网的所有评论