Skip to main content
Question

List to XML

  • February 17, 2020
  • 0 replies
  • 20 views

Forum|alt.badge.img

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 &amp; 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 &amp; 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.

 

 

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.