我有下面的字符串。我想解析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的值。我可以使用哪个解析器来完成这个任务?
发布于 2012-06-13 05:08:55
请使用Dom解析器,下面是Dom Parser链接示例。
Dom解析
https://stackoverflow.com/questions/11008365
复制相似问题