读取XML数据

作者: 几千里也 | 来源:发表于2015-04-24 10:10 被阅读33次

    Q: How to read data from an xml file in xml folder of resources, in Android application?
    A: Use XMLResource parser to read the resource file, and parse it.

    Description:
    For pulling data from an XML file which is stored in xml folder or resources, then we have to use XMLResourceParser.

    XmlResourceParser xp = getResources().getXml(R.xml.myfile);
    

    相关文章

      网友评论

        本文标题:读取XML数据

        本文链接:https://www.haomeiwen.com/subject/xvdpfttx.html