xml数据如下:
<test>
<Step TestResultInfo=" " TestElapsedTimeSec="0" TestResult="Pass" StepNumber="1" GUIResponseTime="0" TestDateTimeStarted="11/20/2012 11:01:14 PM" StepDescription="Ampere CMQMR -- Map CMQMR Driver" StepName="ProcMapCMQMRDriver_Foxconn"/>
<Step TestResultInfo=" " TestElapsedTimeSec="0" TestResult="Pass" StepNumber="2" GUIResponseTime="0" TestDateTimeStarted="11/20/2012 11:01:14 PM" StepDescription="Factory CIM check" StepName="ProcCheckFactoryCIMSetup_Foxconn"/>
-<Step TestResultInfo=" " TestElapsedTimeSec="1" TestResult="Pass" StepNumber="3" GUIResponseTime="0.14" TestDateTimeStarted="11/20/2012 11:01:14 PM" StepDescription="Establish Connection" StepName="ProcSetVerifyCommunication">
+<DataLog TestResult="PASS" TableName="ccProcSetVerifyCommunicationRes">
</Step>
</test>
我试着这样做:
注册pigbank.jar
然后用xmlloader加载 data = LOAD '/tmp/xmldatademo.xml' USING XMLLoader('Step') AS (Step:chararray);
如何获取详细属性?
暂无答案!
目前还没有任何答案,快来回答吧!