I have xml similar to the one below:
<?xml version='1.0' encoding='utf-8'?>
<Document>
<name>SMTH</name>
<Group>
<GroupHeader>Some Description</GroupHeader>
<Port>
<ID>13553</PortID>
<Name>Some name</PortName>
<Number>PO1005</WorldPortNumber>
<Section>
<SectionHeader ID="63">General overview</SectionHeader>
<PAR ID="59341" updatedate="19/05/2010 08:35:51">Important data</PAR>
</Section>
<Section>
<SectionHeader ID="66">Max size</SectionHeader>
<PAR ID="59344" updatedate="19/05/2010 08:35:51">Important data</PAR>
</Section>
</Port>
</Group>
</Document>
I would like to select all the Port nodes including only ID, Name, Number and PAR children nodes (rest of the children node should be ignored). Result should be just a collection of Port nodes including those 4 children nodes I listed above.
Here is what is should look like:
Port:
ID=234234
Name=blabla
Number=324234
PAR=sdfsdfs
PAR=fgfgfg
Port:
ID=5555
Name=blabla
Number=ghfh
PAR=sdfsdfs
PAR=fgfgfg
...
Many thanks!
Somthing like:
Hope that helps. 🙂
Regards,
Harrie