<xml>
<email>[email protected]</email>
<email>[email protected]</email>
<email>[email protected]</email>
<host>
<ip>56.456.155.423, 54.455.155.654, 544.47.745.80, 54.192.155.842</ip>
<hostname>abc.cutshort.io</hostname>
</host>
<host>cdn.cutshort.io</host>
<host>
<ip>56.456.155.423, 54.455.155.654, 544.47.745.80, 54.192.155.842</ip>
<hostname>abc.cutshort.io</hostname>
</host>
<host>www.cutshort.io</host>
<host>blogdata.cutshort.io</host>
<host>cdn.cutshort.io</host>
</xml>
I want to extract the value of "host" without extracting the value of "hostname" or "ip". The output is supposed to look like this:
cdn.cutshort.io
www.cutshort.io
blogdata.cutshort.io
cdn.cutshort.io
I have only recently started xml parsing so please be patient. Any help will be appreciated!
sel
which is called 2. Select/Query XML documents. There you find anything you need the query your xml.