> <cfset x = GetHttpRequestData().content>
> #x.DeliveryReport.message id#<br>
> #x.DeliveryReport.status#<br>
And I presume that didn't work (typo in the second line
aside)?
According to the docs for getHttpRequestData():
http://livedocs.adobe.com/coldfusion/8/functions_e-g_43.html
the "content" key will be a string.
So the first question is: can one take a STRING and refer to
it as if it's
a structure like you have? I get this error:
{quote}
You have attempted to dereference a scalar variable of type
class
java.lang.String as a structure with members.
{quote}
So I'm guessing "no" (actually I know so, but I'm trying to
approach this
from an POV of trying to work it out for the first time).
So one cannot see some XML in a string and hope CF will also
work out that
you want the string to be treated as XML. You might need to
convert the
string to XML first.
This should lead you to investigate how to do that, and I
suspect that if
you're read any of the docs I pointed you to, you'd have got
at least that
far. So I'm guessing you *didn't* bother to read those docs,
so I'm kinda
wondering whether you actually *do* want to work this out.
But anyway, if you're prepared to try to help yourself, I'm
prepared to try
to help you with that. Read the docs I pointed you to. They
are not a
random selection, they are the ones you will need to crack
this one. Read
up on xmlParse(), and then how to refer to elements within an
XML doc.
There are examples of this in the docs.
I'm about to go out, but will check back here in a couple of
hours to see
if you've made any progress.
--
Adam