I have a XML like this below and i want to extract the attributes (example: externalid
) of it using DataWeave.
"<?xml version="1.0" encoding="UTF-8"?>
<platformCore:record xmlns="urn:messages.platform.webservices.netsuite.com" xmlns:listRel="urn:relationships.lists.webservices.netsuite.com" xmlns:platformCore="urn:core.platform.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" externalId="680" internalId="1426" xsi:type="listRel:Customer">
<listRel:entityId>CUST611 Comercial Vega</listRel:entityId>
<listRel:isPerson>false</listRel:isPerson>
</platformCore:record>"