+ Start a Discussion
Adil_SFDCAdil_SFDC 

Parsing XML Response

 My requirement is to call a REST API  which gives an XML Response. 

I have to parse that XML and display on VF Page. Is there any example how can I go about it. 

Flight PlanFlight Plan
Adil_SFDCAdil_SFDC

Thanks Flight plan 

 

Here is my XML 

How do I parse this and store it in a LIST

Check<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:ServiceOrdersResponse xmlns:ns2="http://2013-01/orderFulfillment"><ns2:serviceOrders><ns2:serviceOrderId>8519</ns2:serviceOrderId><ns2:customerId>7</ns2:customerId><ns2:corePackage>OAP</ns2:corePackage><ns2:serviceOrderItem><ns2:productCode>DEALER_CHAT</ns2:productCode><ns2:productName>Chat</ns2:productName></ns2:serviceOrderItem><ns2:serviceOrderItem><ns2:productCode>INVENTORY_VIDEO</ns2:productCode><ns2:productName>Inventory Level Video on site</ns2:productName></ns2:serviceOrderItem></ns2:serviceOrders><ns2:status>OK</ns2:status></ns2:ServiceOrdersResponse>