【问题标题】:How to retrieve infromation from inside the tag of an xml in java android?如何从java android中的xml标签内检索信息?
【发布时间】:2015-03-26 17:38:08
【问题描述】:

我在网上看到了很多答案,但他们总是关于类型的数据

<tag>Data is here</tag>

我要问的是数据何时在标签本身内。例如在这种情况下:

<quote f25="3M Company" f6="162.11" f14="-0.59" f15="-0.3626" f2="162.443" f3="161.21">26 Mar 15:05</quote>
<quote f25="Alcoa Inc." f6="12.89" f14="-0.08" f15="-0.6168" f2="13.01" f3="12.86">26 Mar 15:05</quote>

如何检索名称值和移动。那么 f25、f6 和 f14??

【问题讨论】:

    标签: android xml tags extract


    【解决方案1】:

    你可以使用 element.getAttribute("f25");提取属性值

    【讨论】:

      猜你喜欢
      • 2019-12-27
      • 1970-01-01
      • 1970-01-01
      • 2013-12-26
      • 1970-01-01
      • 2011-12-02
      • 1970-01-01
      • 2014-07-02
      • 1970-01-01
      相关资源
      最近更新 更多