【发布时间】:2020-03-04 17:56:35
【问题描述】:
我的要求是获取具有相同名称父的子标签的属性值。 以下是 XML 结构,如:
<A>
<B ID="id">
<B parentID="id" .. other attributes>
<B parentID="id" .. other attributes>
<B parentID="id" .. other attributes>
<B parentID="id" .. other attributes>
</B>
</A>
我期望获取父B标签下所有子B标签的属性值。
谢谢
【问题讨论】: