Hi,
We are looking at taking a simple list and creating an XML from it.
---
The list contain the following components
VEG-Vegetation/Plant
PVP-PV Panels
CWL-Curtain Walling
+ Another 1000 lists
The XML looks like this and is attached. The item in bold is what we want to replace.
<?xml version="1.0" encoding="UTF-8"?>
<exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://download.autodesk.com/us/navisworks/schemas/nw-exchange-12.0.xsd" units="ft" filename="CP-WEL-ZZ-LL-MR-N-GZ000_NWD_200213.nwd" filepath="G:\\Construction\\BIM & Tech\\A_Projects\\01_Cherry Park\\01_BIM\\03_Federated Model">
<selectionsets>
<selectionset name="VEG-Vegetation/Plant" guid="7754b400-3fd8-465b-9ec4-31327713c289">
<findspec mode="all" disjoint="0">
<conditions>
<condition test="contains" flags="10">
<property>
<name internal="LcOaSceneBaseUserName">Name</name>
</property>
<value>
<data type="wstring">VEG</data>
</value>
</condition>
</conditions>
<locator>/</locator>
</findspec>
</selectionset>
</selectionsets>
</exchange>
<?xml version="1.0" encoding="UTF-8"?>
<exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://download.autodesk.com/us/navisworks/schemas/nw-exchange-12.0.xsd" units="ft" filename="CP-WEL-ZZ-LL-MR-N-GZ000_NWD_200213.nwd" filepath="G:\\Construction\\BIM & Tech\\A_Projects\\01_Cherry Park\\01_BIM\\03_Federated Model">
<selectionsets>
We want to use the list to create a new XML, but when we use the XML, it seems to duplicate each node atleast twice. Is there a way to either remove duplicate nodes or prevent it from occurring at all.