Søgning i XML
Hej jeg vil gerne finde ud af hvilke elementer der har det samme Pset i den medsendte xml.Jeg er i tvivl om hvordan jeg skal søge filen igennem. Jeg vil gerne vide hvilke undertyper der har det samme Pset.
---XML---
<?xml version="1.0"?>
<provider>
<Process>
<Type1>
<O1>
<config>
<SWTypeID>Type01</SWTypeID>
<Pset>PSetType1</Pset>
<SubType1>
<O1>
<config>
<SWTypeID>x</SWTypeID>
</config>
</O1>
</SubType1>
<Subtype2>
<O1>
<config>
<SWTypeID>x</SWTypeID>
</config>
</O1>
</SubType2>
</config>
</O1>
</Type1>
<Type2>
<O1>
<config>
<SWTypeID>Type2</SWTypeID>
<Pset>PSetType2</Pset>
<SubType3>
<O1>
<config>
<SWTypeID>A</SWTypeID>
<Input1>
<Name>AI</Name>
<FriendlyName>Type2.SubType3.01</FriendlyName>
<Address>
<standard>01</standard>
</Address>
</Input1>
</config>
</O1>
<O2>
<config>
<SWTypeID>B</SWTypeID>
<Input1>
<Name>AI</Name>
<FriendlyName>Type2.SubType3.02</FriendlyName>
<Address>
<standard>02</standard>
</Address>
</Input1>
</config>
</O2>
</SubType3>
<SubType4>
<O1>
<config>
<SWTypeID>x</SWTypeID>
<COMPort>
<UnitAddress>10</UnitAddress>
<Name>PB</Name>
<FriendlyName>Type2.SubType4.01</FriendlyName>
<Address>
<standard>01</standard>
</COMPort>
</config>
</O1>
</O1>
<O2>
<config>
<SWTypeID>x</SWTypeID>
<COMPort>
<UnitAddress>11</UnitAddress>
<Name>PB</Name>
<FriendlyName>Type2.SubType4.02</FriendlyName>
<Address>
<standard>02</standard>
</Address>
</COMPort>
</config>
</O2>
</SubType4>
</config>
</O1>
</Type2>
<Type3>
<O1>
<config>
<SWTypeID>Type3</SWTypeID>
<Pset>PSetType2</Pset>
<SubType5>
<O1>
<config>
<SWTypeID>x</SWTypeID>
<COMPort>
<Name>MOD</Name>
<FriendlyName>Type3.SubType5.01</FriendlyName>
<Address>
<standard>01</standard>
</Address>
</COMPort>
</config>
</O1>
</SubType5>
</config>
</O1>
</Type3>
</Process>
</provider>
---XML---