2013-10-28 41 views
-1

我要解析的XML内容的服务器,我怎么能做到这一点....安卓httppost方法将XML内容发布到服务器

<order> 
    <orderItems> 
    <itemId>9523</itemId> 
    <lhmItemId>162327</lhmItemId> 
    <itemQuantity>1122</itemQuantity> 
    <instruction/> 
</orderItems> 

<contactInfo> 

    <customerName>aaaaaaaaa</customerName> 
    <email>[email protected]</email> 
    <mobile>1111111111</mobile> 
    <phone>1111111111</phone> 
    </contactInfo> 
</order> 

回答

0

请参阅本tutorial。你会得到将字符串值转换为xml的想法,并且你将能够将值发回服务器。在这个教程示例中,它由HttpPost完成,但是如果你想使用HttpGet而不是使其成为HttpGet请求。