I use simplexml to do this....

IF no one else has responded by the time i get back home I will happily post some code, or i can rendezvous with you on irc.

I breath this stuff at work ;)

Sent from my iPad

On Mar 24, 2011, at 6:09 PM, jeff@ayendesigns.com wrote:

When all else fails, and #xml, ##php and #drupal-support come up empty...ask the folks who actually code :)

I have an xml structure that has

<this>
<that parm1="a" parm2="b" parm3="c">red</that>
<that parm1="e" parm2="f" parm3="d">blue</that>
</this>

I've tried simplexml and a few third-party scripts, one that loads the xml into an associative array rather than an object, and nothing lets me get at 'red' or 'blue'.  When I use dsm() on the results, for example, in the case of the object with simplexml I get only one 'that' and do not get its contents. When I use the script that creates the array, I get both that's, and all their parms as elements, but not the colors.

I'm curious what else people are using.

Jeff
--
I am a non sequitur. Beware, the contents were packaged where peanuts are processed.

<ayenlogo>Ayen Designs
388 Bullsboro Drive #105 ยท Newnan, Georgia 30263

404-271-9734
Web:ayendesigns.com
Blog: theAccidentalCoder.com
Drupal: j. ayen green (367108)
IRQ: j_ayen_green
IM (Yahoo) baalwww    (MSN) baalwww@yahoo.com
Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns



Ayen Designs is the computer services division of <acmelogo>