I have tried to guess what a repro case might be for what you're
saying, and came up with this:


<cfsavecontent variable="s">
<level1>
     <level2>
           <Notifications>
                 <Severity>SUCCESS</Severity>
                 <Message>Transaction Complete</Message>
           </Notifications>
    </level2>
</level1>
</cfsavecontent>
<cfset xmlText = xmlParse(s)>

<cfset severity =
xmlText.level1.level2.Notifications.Severity.xmlText>
<cfset msg = xmltext.level1.level2.Notifications.Message.xmlText>

<cfdump var="#variables#">

It works fine for me on OBD and CF8.  So obviously this is NOT a repro
case for what you're seeing.

As others have suggested:  post *actual code* that demonstrates the
issue.

Otherwise it's just you going "it doesn't work" and everyone else
going "oh yes it does" like some sort of weird BlueDragon pantomime.

--
Adam


On Sep 28, 4:03 am, Drew <[email protected]> wrote:
> This is just a sample of the code. The actual packet is not really
> important.
>
> The question I have is how to you address an XML element. As I said
> before, this
> works just great in Adobe CF 9 but doesn't work in Open Blue Dragon.
> Given the
> above example, how would you in code the XML process to address the
> element Severity or Message.
>
> Thanks,
> -Drew
>
> On Sep 27, 10:15 pm, "Peter J. Farrell" <[email protected]> wrote:
>
> >   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

Reply via email to