Trying to generate an HTML table using JavaScript based on XML data.
When a child element like //host exists, I need to extract the value of a parent element called "name" from a different ancestor using XPath
The required channel name can be found in this XPath expression:
"/serverConfiguration/channels/channel/name"
This should only be done if the child element is located at:
"/serverConfiguration/channels/channel/sourceConnector/properties/listenerConnectorProperties/host"
Ensure the existence of the child element before extracting the channel name.