I have a question. I am using a credit card proccessor that formats its XML output like this:
<?xml version="1.0" standalone="no"?>
<XMLResponse xmlns:xsi="xsi:noNamespaceSchemaLocation="<XMLTrans>
<transType>05</transType>
<sourceEmail>test@nslink.net</sourceEmail>
<invNum>GH5514</invNum>
<status>69</status>
<transNum></transNum>
<authCode></authCode>
</XMLTrans>
</XMLResponse>
I have a script that will parse data that is outputted like this:
<!DOCTYPE pp.response PUBLIC "-//IMALL//DTD PUREPAYMENTS 1.0//EN" "<pp.response>
<pp.authresponse merchant="1001" ordernumber="18140517" failure="true">Merchant not found</pp.authresponse>
<pp.authresponse merchant="1001" ordernumber="18140518" failure="true">Merchant not found</pp.authresponse>
</pp.response>
How do I modify the current script to parse the date from the first one. Please I need help with this. Just if you point me in the right direction. I could pay someone who knows what they are doing. This modification shouldn't be that hard
<?xml version="1.0" standalone="no"?>
<XMLResponse xmlns:xsi="xsi:noNamespaceSchemaLocation="<XMLTrans>
<transType>05</transType>
<sourceEmail>test@nslink.net</sourceEmail>
<invNum>GH5514</invNum>
<status>69</status>
<transNum></transNum>
<authCode></authCode>
</XMLTrans>
</XMLResponse>
I have a script that will parse data that is outputted like this:
<!DOCTYPE pp.response PUBLIC "-//IMALL//DTD PUREPAYMENTS 1.0//EN" "<pp.response>
<pp.authresponse merchant="1001" ordernumber="18140517" failure="true">Merchant not found</pp.authresponse>
<pp.authresponse merchant="1001" ordernumber="18140518" failure="true">Merchant not found</pp.authresponse>
</pp.response>
How do I modify the current script to parse the date from the first one. Please I need help with this. Just if you point me in the right direction. I could pay someone who knows what they are doing. This modification shouldn't be that hard