根据xml schema生成xml

  根据xml schema生成xml<o:p></o:p>

Schema文件定义如下:<o:p></o:p>

<o:p></o:p>

<xs:schema xmlns="http://mydomain.com/myApp" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mydomain.com/myApp" elementFormDefault="qualified" attributeFormDefault="unqualified"><o:p></o:p>

       <xs:element name="e1"><o:p></o:p>

              <xs:complexType><o:p></o:p>

                     <xs:sequence><o:p></o:p>

                            <xs:element name="e11" type="xs:int"/><o:p></o:p>

                            <xs:element name="e12"><o:p></o:p>

                                   <xs:complexType><o:p></o:p>

                                          <xs:attribute name="e121" type="xs:string" use="required"/><o:p></o:p>

                                          <xs:attribute name="e122" type="xs:long"/><o:p></o:p>

                                   xs:complexType><o:p></o:p>

                            xs:element><o:p></o:p>

                     xs:sequence><o:p></o:p>

              xs:complexType><o:p></o:p>

       xs:element><o:p></o:p>

xs:schema><o:p></o:p>

<o:p> </o:p>

请用xmlBean生成jar包,并编写一个程序生成一个xml文件,其中e11=11 e121=”e<st1:chmetcnv w:st="on" tcsc="0" unitname="”" sourcevalue="121" negative="False" numbertype="1" hasspace="False">121”</st1:chmetcnv><o:p></o:p>

l        请给出用XmlBean生成该jar包的命令。<o:p></o:p>

l        请写出程序<o:p></o:p>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值