Parse xml response from web service stored in string - InfoPath Dev
in

InfoPath Dev

Parse xml response from web service stored in string

Last post 03-04-2016 04:32 AM by Darren S. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-04-2016 04:32 AM

    Parse xml response from web service stored in string

    I query a web service to get back a list of products on a multibuy, the web service returns the following string

    <?xml version="1.0" encoding="utf-8"?> <MultibuyInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Products> <Product> <Code>10001</Code> <Description>Apple</Description> <EAN>1234567891234</EAN> </Product> <Product> <Code>52153</Code> <Description>Orange</Description> <EAN>1234567891235</EAN> </Product> <Product> <Code>52157</Code> <Description>Banana</Description>v <EAN>1234567891236</EAN> </Product> </Products> </MultibuyInfo>

    I need to get this into a repeating element which will show each product description?

    This Xpath will return the full string but not sure where to go from here?

    xdXDocument:GetDOM("GetMultibuyInfo")/dfs:myFields/dfs:dataFields/ns1:GetMultibuyInfoResponse/ns1:GetMultibuyInfoResult

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.