How do we audit the XML child node after we audit the parents node

(imported topic written by HSLimMic91)

Hi All,

I would like to ask if how to perform the audit for the following nodes:

First I will need to check that the Channel’s name = “Channel1” then i will need to check for the Adapter’s name contain “Channel1Adpater2” (Basically I will need to drill down on the Channel1’s xml tree to reach only the child node of the Channel1). Is this audit possible?

This is part of the xml:

Thank you in advance.

(imported comment written by NoahSalzman)

On Windows, I wrapped around your text and was able to do use this Relevance. Multiple steps are shown for folks who are interested on how you build a query like this step-by-step:

q: (node names of it, node values of attributes of it) of child nodes of selects “/xml” of xml document of file “c:\sample.xml”

A: Channel, Channel1

A: Channel, Channel2

q: node names of child nodes whose (node value of attributes of it = “Channel1”) of selects “/xml” of xml document of file “c:\sample.xml”

A: Channel

q: exists child nodes whose (node name of it is “Adapters”) of child nodes whose (node value of attributes of it = “Channel1”) of selects “/xml” of xml document of file “c:\sample.xml”

A: True

q: exists child nodes whose (exists node values whose (it is “Channel1Adapter2”) of attributes of it) of child nodes whose (node name of it is “Adapters”) of child nodes whose (node value of attributes of it = “Channel1”) of selects “/xml” of xml document of file “c:\sample.xml”

A: True

q: node values of attributes of child nodes whose (exists node values whose (it is “Channel1Adapter2”) of attributes of it) of child nodes whose (node name of it is “Adapters”) of child nodes whose (node value of attributes of it = “Channel1”) of selects “/xml” of xml document of file “c:\sample.xml”

A: Channel1Adapter2

A: Channel1Playback, Channel1Playback

q: node values of attributes whose (node name of it is “value”) of child nodes whose (exists node values whose (it is “Channel1Adapter2”) of attributes of it) of child nodes whose (node name of it is “Adapters”) of child nodes whose (node value of attributes of it = “Channel1”) of selects “/xml” of xml document of file “c:\sample.xml”

A: Channel1Playback, Channel1Playback

(imported comment written by HSLimMic91)

Thanks a lot Noah for the steps to steps guide on building the child nodes auditing.

Its wonderful :slight_smile: