<Transaction>
<DataElement>
<BusinessObjectName i:nil="true" />
<Keys xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>invoice_no</a:string>
</Keys>
<Name>TABPAGE_17.invoice</Name>
<Rows>
<Row>
<Edits>
<Edit>
<IgnoreIfEmpty>false</IgnoreIfEmpty>
<Name>invoice_no</Name>
<Value>1423071</Value>
</Edit>
<Edit>
<IgnoreIfEmpty>false</IgnoreIfEmpty>
<Name>receivable_amt</Name>
<Value>103.37</Value>
</Edit>
</Edits>
<RelativeDateEdits />
</Row>
</Rows>
<Type>List</Type>
</DataElement>
<DataElement>
<BusinessObjectName i:nil="true" />
<Keys xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>invoice_no</a:string>
</Keys>
<Name>TABPAGE_17.invoice</Name>
<Rows>
<Row>
<Edits>
<Edit>
<IgnoreIfEmpty>false</IgnoreIfEmpty>
<Name>invoice_no</Name>
<Value>1428090</Value>
</Edit>
<Edit>
<IgnoreIfEmpty>false</IgnoreIfEmpty>
<Name>receivable_amt</Name>
<Value>136.74</Value>
</Edit>
</Edits>
<RelativeDateEdits />
</Row>
</Rows>
<Type>List</Type>
</DataElement>
</Transaction>
I am trying to get the following xpath statement to work based on the above XML sample using sliblings, but cannot get this to work.
xpath(outputs('Failed_Transaction_Result'),'string(//Name[contains(text(),"invoice_no")]//following-sibling::Value')
Can anyone confirm whether this is supported?
I would like to get all of the <Value> if the <Name> = "invoice_no".
Ideally the results would look like this:
1423071, 1428090