Hi all,
This is the first time I've ever needed to do anything with XML using Coldfusion and I'm getting a little stuck here.
The XML file I am parsing is the following: (This is a cut down version)
Can anyone tell me the best way to parse this output? For example, let say I needed to return the value of AccountStatus.
I've tried a few ways and I always end up with strange errors or problems.
I'm using 6.1
Thanks in advance,
Wullie
This is the first time I've ever needed to do anything with XML using Coldfusion and I'm getting a little stuck here.
The XML file I am parsing is the following: (This is a cut down version)
Code:
<?xml version="1.0" ?>
<Results>
<ResultCode>0</ResultCode>
<ResultDescription>OK</ResultDescription>
<ResultData recordcount="1">
<Record>
<field name="AccountNumber">
<value>TEST1</value>
</field>
<field name="AccountType">
<value>1</value>
</field>
<field name="AccountStatus">
<value>0</value>
</field>
</Record>
</ResultData>
</Results>
Can anyone tell me the best way to parse this output? For example, let say I needed to return the value of AccountStatus.
I've tried a few ways and I always end up with strange errors or problems.
I'm using 6.1
Thanks in advance,
Wullie