我的要求是获取具有相同父名称的子标记的属性值。 以下是类似的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标签的属性值。
谢谢