public MobileAdCostQueueRes readMobileAdAgentQueue()
{
//
MobileAdCostQueueRes vMobileAdCostQueueRes=new MobileAdCostQueueRes();
try
{
Element rootFirst=doc.getRootElement();
for(Iterator i=rootFirst.elementIterator("content");i.hasNext();)
{
//Element foo=doc.getRootElement();
Element foo=(Element)i.next();
for(Iterator j=foo.elementIterator("response");j.hasNext();)
{
Element root=(Element)j.next();
vMobileAdCostQueueRes.isOwingFlag="0";//默认是欠费
int leaveMon=Integer.parseInt(root.elementText("total_amount"));
if(leaveMon>=0)
{
vMobileAdCostQueueRes.isOwingFlag="1";
}
else
{
vMobileAdCostQueueRes.isOwingFlag="0";
}
vMobileAdCostQueueRes.strTalBalance=root.elementText("total_amount")==null?"":root.elementText("total_amount");
}
}
}
catch(Exception e)
{
System.out.println(e.getMessage());
return null;
}
return vMobileAdCostQueueRes;
}
//2009年10月22日16:21:42