LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing cluster element from XML, instead of replacing with blank

Solved!
Go to solution

So I want to remove any empty values from an a cluster.

In my example I have.

Cluster called -> Media List

This contains an array of:

-> Media Name

-> Media Path

I want to remove any of the empty medias from the xml

at the moment, I'm just indexing it in a for loop and replacing it with an empty constant but this doesn't actually do anything I realised, it's just re-placing the empty value.

TylerHW_0-1676828627075.png

What's the proper way for me to delete this element? Thank you

 

0 Kudos
Message 1 of 2
(726 Views)
Solution
Accepted by topic author TylerHW

Hi Tyler,

 

Let me reformulate your statement to be sure I understood it correctly:

I have an array of clusters (representing a list of media) on which I want to remove all elements that have an empty "Media Name".

 

Simply use a conditional auto-indexing tunnel. This will keep only elements that satisfy a certain condition (in your case having a non-empty Media Name):

raphschru_0-1676839846019.png

 

Message 2 of 2
(697 Views)