有如下的XML字符串:
<?xml version="1.0" encoding="UTF-8"?>
<?Label SINFON|RATE|328|SUCCESS ?>
<RateHeader xmlns="rate.fidelio.2.0" rateStatus="ACTIVE" yieldStatus="NONE">
<hotelCode>SINFON</hotelCode>
<chainCode>COL</chainCode>
<rateClass/>
<RateCategory>
<catDescription>Rack rates</catDescription>
<category>RAK</category>
</RateCategory>
<rateCode>WHL01</rateCode>
<startSell>2013-12-02</startSell>
<endSell>2015-01-22</endSell>
<advancedBookingDays>2</advancedBookingDays>
<displayText>Tour Series</displayText>
<folioText>Room Charge</folioText>
<shortInfo>tour series/min. 5 tours</shortInfo>
<minLos>3</minLos>
<maxLos>20</maxLos>
<rhythm>W</rhythm>
<packages>BRF</packages>
<packages>IBF</packages>
<marketCode>RAC</marketCode>
<sourceCode>COL</sourceCode>
<commission>0</commission>
<foreignCurrencyDepartmentCode/>
<departmentCode>100</departmentCode>
<weekendDepartmentCode>100</weekendDepartmentCode>
<rateBucket>LOW</rateBucket>
</RateHeader>
要求从中读取rateCode节点的值,实现方法如下:
publi