Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Parsing xml string from a text field

$
0
0

I'm calling a webservice that returns a string in XML format as follow:

 

<TemplateList>

<Template>

  <ID>0</ID>

  <Category>

   <Name>Mine now</Name>

   <Product>

    <ID>0</ID>

    <Description>INSOLE HEEL CUP BLUE STAR JR. </Description>

    <HDMSProductId>227</HDMSProductId>

    <LawsonId>216156</LawsonId>

    <PopupMessage />

    <Price />

   </Product>

  </Category>

  <Category>

   <Name>Old New</Name>

   <Product>

    <ID>0</ID>

    <Description>TUBING PEDI-FOAM SLEEVE SMALL </Description>

    <HDMSProductId>224</HDMSProductId>

    <LawsonId>216152</LawsonId>

    <PopupMessage />

    <Price />

   </Product>

  </Category>

  <Category>

   <Name>Four Legs</Name>

   <Product>

    <ID>0</ID>

    <Description>TUBING PEDI-FOAM SLEEVE SMALL </Description>

    <HDMSProductId>224</HDMSProductId>

    <LawsonId>216152</LawsonId>

    <PopupMessage />

    <Price />

   </Product>

  </Category>

  <Category>

   <Name>Mind</Name>

   <Product>

...etc.

   </Product>

  </Category>

</Template>

</TemplateList>

 

I'm trying to drill down to retrieve data from this string. What is the best way to do this in LC Designer form?

I tried to bind the result to a textbox and use applyXPath but it's tricky when there are more than 1 product to iterate through. Suggestions & Examples are greatly appreciated!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>