8
回答
从perl 中读取xml文件,求助!!!!!!!!!!!!!!!!!!
华为云实践训练营,热门技术免费实践!>>>   

<?xml version="1.0" encoding="UTF-8"?>
<root>
 <row>
  <field name='CURRENT_DATE'  value='2011-10-25'/>
  <field name='GATEWAY_NAME'  value='HESJ-PS-WAP-SYS01'/>
  <field name='REQ_NUM'  value='119339386'/>
  <field name='TODAY_SUCC_RATE'  value='95.95'/>
  <field name='TODAY_TOP_LINE_USER_NUM'  value='412'/>
  <field name='GATEWAY_AVG_DELAY'  value='33.03'/>
 </row>
 <row>
  <field name='CURRENT_DATE'  value='2011-10-26'/>
  <field name='GATEWAY_NAME'  value='HESJ-PS-WAP-SYS01'/>
  <field name='REQ_NUM'  value='3318745'/>
  <field name='TODAY_SUCC_RATE'  value='95'/>
  <field name='TODAY_TOP_LINE_USER_NUM'  value='127'/>
  <field name='GATEWAY_AVG_DELAY'  value='37.56'/>
 </row>

</root>

如何用perl 从上面的xml 文件中读取数据?

举报
yanheping
发帖于6年前 8回/1K+阅
顶部