标签:android blog http java 使用 os io strong
有些时候,我们需要生成一个XML文件,生成XML文件的方法有很多,如:可以只使用一个StringBuilder组拼XML内容,然后把内容写入到文件中;或者使用DOM API生成XML文件,或者也可以使用pull解析器生成XML文件,这里推荐大家使用Pull解析器。
一、布局界面
二、写一个xml文件
三、写一个和xml相对应的bean
四、写一个Pul的服务类
五、在MainActivity中调用测试
http://blog.csdn.net/xueshuangshuang123/article/details/9016161
使用Pull解析器生成XML文件和读取xml文件,布布扣,bubuko.com
标签:android blog http java 使用 os io strong
原文地址:http://www.cnblogs.com/daishuguang/p/3893601.html