LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get child node with a given tag after a given parent node

 

Hi everyone

parsing an XML file, how do I get all the child nodes with the same tag after a given parent node?

example:

 

<Mario>

  <Luigi>

  <Marco>

  <Luigi>

  <Luigi>

  <Giulio>

 

given Mario I want the node list of Luigi Tag.

 

Consider that there may be more than one Mario tag. I want all the Luigi tags after (children) a specific Mario tag (Parent) say the 3rd of a nodelist of Mario tag in my document.

Thank you, 

 

 

diego

0 Kudos
Message 1 of 4
(3,543 Views)

Hi Diego,

have you tried the Property Node ChildNodesArray?

You can pass the parent node reference and search on the child nodes what you want?

 

Is this what you looking for?

D. Beninato
0 Kudos
Message 2 of 4
(3,521 Views)

 

Thank you

I think you mean right the same way I did

tell me if you would change it in some more efficient or clear way

 

diego

0 Kudos
Message 3 of 4
(3,508 Views)

I think it's Ok

Good Job Diego!

 

D. Beninato
0 Kudos
Message 4 of 4
(3,499 Views)