我創建一個XML一個Excel工作表,我需要產生這樣的結果: Current node name | Parent name
我以前通過一個XML文件,遍歷並從中檢索條目的工作。但我不知道如何找到特定節點的父節點。 有沒有人知道如何找到當前節點的父節點? 示例XML: <node>
<id> 1 </id>
<name> One </name>
<node>
我擁有包含許多重複項的當前XML。 <XML version="1.0">
<body>
<optionTree>
<device modelDescription="20 Slot MX2000 Chassis, Base with 1 RE, SFBs, Fan Trays, AC Power" ProductId="1542671" modelCatalogN