我在使用PIG解析xml文件时获取null值作为输出。 下面是我要解析的xml文件,
此XML文件似乎没有与之关联的任何样式信息。文档树如下所示。
//Activity listens to the moment when all ImageViews have been resized
ResizeCounter.addCounterListener(new OnResizeCounterChangeListener() {
@Override
public void onResizeCounterChanged() {
if (ResizeCounter.getCounter() == 4) {
mAnswerGridView.setVisibility(View.VISIBLE);
}
}
});
我的猪脚是:
<PhysicalProgress>
<row>
<State_Name>Andhra Pradesh</State_Name>
<District_Name>ADILABAD</District_Name>
<Project_Objectives_IHHL_BPL>247475</Project_Objectives_IHHL_BPL>
<Project_Objectives_IHHL_APL>148181</Project_Objectives_IHHL_APL>
<Project_Objectives_IHHL_TOTAL>395656</Project_Objectives_IHHL_TOTAL>
<Project_Objectives_SCW>0</Project_Objectives_SCW>
<Project_Objectives_School_Toilets>4462</Project_Objectives_School_Toilets>
<Project_Objectives_Anganwadi_Toilets>427</Project_Objectives_Anganwadi_Toilets>
<Project_Objectives_RSM>10</Project_Objectives_RSM>
<Project_Objectives_PC>0</Project_Objectives_PC>
<Project_Performance-IHHL_BPL>176300</Project_Performance-IHHL_BPL>
<Project_Performance-IHHL_APL>52431</Project_Performance-IHHL_APL>
<Project_Performance-IHHL_TOTAL>228731</Project_Performance-IHHL_TOTAL>
<Project_Performance-SCW>0</Project_Performance-SCW>
<Project_Performance-School_Toilets>4462</Project_Performance-School_Toilets>
<Project_Performance-Anganwadi_Toilets>427</Project_Performance-Anganwadi_Toilets>
<Project_Performance-RSM>0</Project_Performance-RSM>
<Project_Performance-PC>0</Project_Performance-PC>
</row>
<row>
<State_Name>Andhra Pradesh</State_Name>
<District_Name>ANANTAPUR</District_Name>
<Project_Objectives_IHHL_BPL>363314</Project_Objectives_IHHL_BPL>
<Project_Objectives_IHHL_APL>181335</Project_Objectives_IHHL_APL>
<Project_Objectives_IHHL_TOTAL>544649</Project_Objectives_IHHL_TOTAL>
<Project_Objectives_SCW>0</Project_Objectives_SCW>
<Project_Objectives_School_Toilets>3421</Project_Objectives_School_Toilets>
<Project_Objectives_Anganwadi_Toilets>284</Project_Objectives_Anganwadi_Toilets>
<Project_Objectives_RSM>10</Project_Objectives_RSM>
<Project_Objectives_PC>0</Project_Objectives_PC>
<Project_Performance-IHHL_BPL>366557</Project_Performance-IHHL_BPL>
<Project_Performance-IHHL_APL>42000</Project_Performance-IHHL_APL>
<Project_Performance-IHHL_TOTAL>408557</Project_Performance-IHHL_TOTAL>
<Project_Performance-SCW>0</Project_Performance-SCW>
<Project_Performance-School_Toilets>4258</Project_Performance-School_Toilets>
<Project_Performance-Anganwadi_Toilets>302</Project_Performance-Anganwadi_Toilets>
<Project_Performance-RSM>0</Project_Performance-RSM>
<Project_Performance-PC>0</Project_Performance-PC>
</row>
<row>
<State_Name>Andhra Pradesh</State_Name>
<District_Name>CHITTOOR</District_Name>
<Project_Objectives_IHHL_BPL>296465</Project_Objectives_IHHL_BPL>
<Project_Objectives_IHHL_APL>236986</Project_Objectives_IHHL_APL>
<Project_Objectives_IHHL_TOTAL>533451</Project_Objectives_IHHL_TOTAL>
<Project_Objectives_SCW>0</Project_Objectives_SCW>
<Project_Objectives_School_Toilets>8171</Project_Objectives_School_Toilets>
<Project_Objectives_Anganwadi_Toilets>375</Project_Objectives_Anganwadi_Toilets>
<Project_Objectives_RSM>10</Project_Objectives_RSM>
<Project_Objectives_PC>0</Project_Objectives_PC>
<Project_Performance-IHHL_BPL>269750</Project_Performance-IHHL_BPL>
<Project_Performance-IHHL_APL>190905</Project_Performance-IHHL_APL>
<Project_Performance-IHHL_TOTAL>460655</Project_Performance-IHHL_TOTAL>
<Project_Performance-SCW>0</Project_Performance-SCW>
<Project_Performance-School_Toilets>8171</Project_Performance-School_Toilets>
<Project_Performance-Anganwadi_Toilets>375</Project_Performance-Anganwadi_Toilets>
<Project_Performance-RSM>11</Project_Performance-RSM>
<Project_Performance-PC>0</Project_Performance-PC>
</row>
</PhysicalProgress>