You'll have to show more code and the xml packet (is your example the
real packet or just an example)...
Drew said the following on 09/27/2010 08:18 PM:
Hey Matt,
In my module (code), the variable is called returnedXML and the error
is the same.
I have dumped the returned XML and everything is as it should be. It's
funny because
this code works great in Adobe CF but doesn't work in OBD.
Thanks for all your input.
-Drew
On Sep 27, 8:40 pm, Matthew Woodward<[email protected]> wrote:
On Mon, Sep 27, 2010 at 5:31 PM, Drew<[email protected]> wrote:
I using a module that works great in Adobe Coldfusion but is causing
issues in Open Blue Dragon.
Can you elaborate on what you mean by "module?" Just want to make sure I
understand if we're talking about code you wrote, something you got from a
third party, etc
<level1>
<level2>
<Notifications>
<Severity>SUCCESS</Severity>
<Message>Transaction Complete</Message>
</Notifications>
</level2>
</level1>
I tried this XML and it works fine.
xmlText contains the returned xml value AFTER the XmlParse command.
Try calling that variable something other than xmlText just for fun, since
xmlText actually means something in terms of XML parsing.
I used the XML you provided and called my variable "foo". I then did this
which worked fine:
<cfset severity = foo.level1.level2.Notifications.Severity.XmlText />
If it turns out that it doesn't like you calling your variable xmlText and
that's something that does work in Adobe CF we'll at least want to make note
of that as a small compatibility issue, but if it were me I wouldn't name my
variable XmlText. :-)
Let me know what happens.
--
Matthew Woodward
[email protected]http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward
Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
official manual: http://www.openbluedragon.org/manual/
Ready2Run CFML http://www.openbluedragon.org/openbdjam/
mailing list - http://groups.google.com/group/openbd?hl=en