【发布时间】:2011-12-29 08:54:21
【问题描述】:
我有一个需要在 Android SDK 中解析的 XML 文件。
如何从资源中读取 XML 文件路径?
XML 包含:
<Book>
<Chapter>
<NO> 1 </NO>
<Text> My Lord </Text>
</Chapter>
<Chapter>
<NO> 1 </NO>
<Text> My Lord </Text>
</Chapter>
</Book>
【问题讨论】:
-
原始文件夹或资产文件夹中的文件在哪里?
-
我不知道如何将 XML 文件添加到资源中。
-
你可以把你的xml放在res/raw或者assets文件夹里然后解析它。
-
我在 asserts 文件夹中添加了 XML 文件。但是我该如何解析呢?
-
尽可能多的答案。 google.co.in/…
标签: java android xml resources