【发布时间】:2012-06-13 04:50:44
【问题描述】:
可能重复:
Android: How we can get the value from attribute from xml string
我有以下字符串。我想解析attribute of outline。
<opml version="1">
<head>
<status>200</status>
</head>
<body>
<outline type="text" text="General" guide_id="f1" is_default="true"/>
<outline type="text" text="Rock Stations" guide_id="f2"/>
<outline type="text" text="Rock Stations" guide_id="f3"/>
<outline type="text" text="Rock" guide_id="f4"/>
<outline type="text" text="Awdhesh" guide_id="f5"/>
</body>
</opml>
如何解析属性并获取text 和guide_id 的值。
我可以使用哪个解析器来执行此操作?
【问题讨论】:
-
这是问答网站不是代码生成网站,所以不要要求代码,而是要求相同的提示和指南,否则你会得到反对票,而且问题可能会接近,@ 987654322@