4 Replies Latest reply on Oct 15, 2015 8:56 AM by davidcor RSS
    davidcor Apprentice

    trouble parsing XML

    I am able to retrieve the following XML from a web service and assign it to a variable, returnXML. However, I can't figure out how to retrieve the data elements within it. I've tried returnXML.customerProfileID, returnXML.messages.resultCode, etc but they values come back empty.

    <createCustomerProfileResponse
    xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <messages>
            <resultCode>Ok</resultCode>
            <message>
                <code>I00001</code>
                <text>Successful.</text>
            </message>
        </messages>
        <customerProfileId>29734345</customerProfileId>
        <customerPaymentProfileIdList/>
        <customerShippingAddressIdList/>
        <validationDirectResponseList/>
    </createCustomerProfileResponse>