Extracting data out of XML in Deluge

Extracting data out of XML in Deluge

Hi, I'm getting a data through API from GET function such as

get_data = getUrl(" ");
info get_data;

This responds with:

<DTDCREPLY xmlns="http://dtdc.com">
<CONSIGNMENT xmlns="">
<FIELD name="strShipmentNo" value="T04525306"/>
<FIELD name="strRefNo" value="122396659911"/>
<FIELD name="strCNType" value="CP"/>
<FIELD name="strCNTypeCode" value="JF1330"/>
<FIELD name="strCNTypeName" value="SUFFIA CHOWK"/>
<FIELD name="strCNProduct" value="STANDARD"/>
<FIELD name="strCNProdCODFOD" value=""/>
<FIELD name="strOrigin" value="LUDHIANA"/>
<FIELD name="strOriginRemarks" value="Booked By"/>
<FIELD name="strBookedDate" value="24072021"/>
<FIELD name="strBookedTime" value="00:03:26"/>
<FIELD name="strPieces" value="1"/>
<FIELD name="strDestination" value="JALANDHAR"/>
<FIELD name="strStatus" value="Delivered"/>
<FIELD name="strStatusTransOn" value="24072021"/>
<FIELD name="strStatusTransTime" value="1924"/>
<FIELD name="strStatusRelCode" value="SEL"/>
<FIELD name="strStatusRelName" value=""/>
<FIELD name="strRemarks" value="NULL"/>
<FIELD name="strNoOfAttempts" value="1"/>
<FIELD name="strRtoNumber" value=""/>
<FIELD name="strComplaintNo" value=""/>
<FIELD name="strExpectedDeliveryDate" value="26072021"/>
<FIELD name="strCode" value="BKD"/>

This is basically courier tracking details.

Now I need to extract the value of the FIELD with name "strstatus", and "strExpectedDeliveryDate". How do I do that? My end result needs to be
status = Delivered;   (Type String)
Expec_date_delivery = 26/07/2021; (Type Date)

    • Sticky Posts

    • Function #41: Sync Associated Subforms!

      Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",

      Zoho SalesIQ Resources

            Zoho TeamInbox Resources

              Zoho DataPrep Resources

                  Zoho CRM Plus Resources

                    Zoho Books Resources

                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources

                            Zoho Sprints Resources

                              Qntrl Resources

                                Zoho Creator Resources

                                  Zoho WorkDrive Resources

                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now

                                                      Zoho Show Resources

                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.