19.7.1 教程

目标是展示一些构建模块和模块的基本概念

 

9.7.1.1. XML tree and elements

与一个XML元素及其子元素是元素级别上完成的。

 

9.7.1.2

xml文件,保存到本地test.xml

<?xml version="1.0" encoding="utf-8"?> 
<request>
    <functionID>subPackageInfo</functionID>
    <time>2014-02-10 15:10:50</time>
<packageList>
<packageInfo>    
    <orderId id='9001'>22088317130</orderId>
    <expressName id='1001'>ems</expressName>    
    <expressTel>01</expressTel>    
    <expressNo>0001</expressNo>
    <productId>1001173023</productId>
    <allotQuatity>5</allotQuatity>
    <outOfStockQuatity>0</outOfStockQuatity>
    <promotionID></promotionID>
</packageInfo>

<packageInfo>
    <orderId id='5551'>22088317130</orderId>
    <expressName id='10086'>23</expressName>    
    <expressTel>010-55675233</expressTel>    
    <expressNo>0002</expressNo>
    <productId>1001173123</productId>
    <allotQuatity>5</allotQuatity>
    <outOfStockQuatity>0</outOfStockQuatity>
    <promotionID>-1</promotionID>
</packageInfo>

<packageInfo>
    <orderId>22088317130</orderId>
    <expressName>EMS</expressName>    
    <expressTel>010-55675233</expressTel>    
    <expressNo>0003</expressNo>
    <productId>1001173223</productId>
    <allotQuatity>0</allotQuatity>
    <outOfStockQuatity>5</outOfStockQuatity>
    <promotionID>-1</promotionID>
</packageInfo>


</packageList>
</request>
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-12-28
  • 2021-06-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-09-29
  • 2021-05-29
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案