2011-09-29 143 views
2
<content type="xhtml"> 

     <apxh:div> 
      <apxh:p>xyz</apxh:p> 
      <apxh:p>xyz</apxh:p> 
      <apxh:p>xyz</apxh:p> 
      <apxh:p>xyz</apxh:p> 
      <apxh:p>xyz</apxh:p> 

     </apxh:div> 
    </content> 

我能夠得到「XHTML」目前在按類型,解析XML具有屬性

 item.getChild(url,CONTENT).setStartElementListener(new StartElementListener() { 

     @Override 
     public void start(Attributes attributes) { 
     str=attributes.getValue("type"); 


     } 
    }); 
    item.getChild(url,CONTENT).setEndElementListener(new EndElementListener() { 

     @Override 
     public void end() { 
      currentMessage.setType(str); 

     } 
    }); 

現在,我如何能得到「apxh:格」,因爲它是由分離「 :「?

謝謝。

回答

1

我認爲你需要解析它以進行SOAP解析。 ur xml的標記模式表明,使用soap解析 肯定會幫你...

+0

實際上它是一個atom feed解析。 – zaiff

+0

嘗試SOAP解析,一般肥皂解析有這種模式,你有.... – Richa