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);
如何获取详细属性?