reading repeating elementt values in biztalk

DNS 1 Reputation point
2021-02-23T00:31:44.933+00:00

Dear team, i have exposed json service using biztalk. in the input i have: "addOns": ["a1", "a2", "a3", "a4"],
after generating schema using json schema wizard i got xsd created as:
<xs:element minOccurs="0" maxOccurs="unbounded" name="addOns" type="xs:string" />

now if i give input to service like "addOns": ["a1", "a2", "a3", "a4"], then i found following xml in biztalk : <addOns>a1</addOns> <addOns>a2</addOns> <addOns>a3</addOns> <addOns>a4</addOns> along with other tags.
now i want to read each value in <addOns>.
if value is a1 then i need to map price element from input to destination.
if value is a2 then i need to map cgst element from input to destination.
if value is a3 then i need to map igst element from input to destination so on.. please guide best approach

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
358 questions
{count} votes