Ich versuche, den untergeordneten Text des Elements "value" für ein einzelnes "Formular" auszuwählen, das eine ID hat, die mit tblXDAP-txtfXdapType - 1 übereinstimmt.xPath help - Geschwister auswählen
Hier ist eine Probe meines XML
<form xsi:type="ns1:FormElement">
<ID xsi:type="soapenc:string">tblXDAP-txtfXdapType--1</ID>
<label xsi:type="soapenc:string">XDAP Type</label>
<labelValue xsi:nil="true" xsi:type="soapenc:string"/>
<type xsi:type="xsd:int">0</type>
<value xsi:type="soapenc:string">Win7 x64 Developer</value>
</form>
<form xsi:type="ns1:FormElement">
<ID xsi:type="soapenc:string">tblXDAP-txtfXdapUser--1</ID>
<label xsi:type="soapenc:string">User</label>
<labelValue xsi:nil="true" xsi:type="soapenc:string"/>
<type xsi:type="xsd:int">0</type>
<value xsi:type="soapenc:string"/>
</form>
<form xsi:type="ns1:FormElement">
<ID xsi:type="soapenc:string">tblXDAP-txtfXdapType--2</ID>
<label xsi:type="soapenc:string">XDAP Type</label>
<labelValue xsi:nil="true" xsi:type="soapenc:string"/>
<type xsi:type="xsd:int">0</type>
<value xsi:type="soapenc:string">Win7 x86 Standard</value>
</form>
Ich war mit dem xPath //*[local-name()='form'][*[local-name()='ID'][starts-with(., 'tblXDAP-txtfXdapType--1')]]
aber ich bin nicht in der Lage, den Wert aus dieser Abfrage auszuwählen. In meinem Beispiel würde Ich mag den Wert „Win7 x64 Entwickler“