【发布时间】:2014-09-29 16:29:20
【问题描述】:
我在内部存储中有大量 *.xml 文件。我没有自己创建这些文件,但我需要使用它们。它们的结构如下:
<?xml version="1.0" encoding="utf-16"?>
<ControlFrame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LandCode>31</LandCode>
<LandName>Australia</LandName>
<strFormat>Format35to45</strFormat>
<bUseOverlay>true</bUseOverlay>
...
</ControlFrame>
用户从列表中选择一个*.xml 文件,然后我为正确的*.xml 生成一个File 对象
接下来,我需要在*.xml 文件中查询LandCode 或bUseOverlay 等属性。
我已经尝试了所有方法,但我无法让它在 Jellybean 4.3 上运行。
我最好的方法是什么?如何实施?
【问题讨论】:
标签: android android-4.3-jelly-bean