Accessing Node of an XML object
Posted
by Lizard
on Stack Overflow
See other posts from Stack Overflow
or by Lizard
Published on 2010-05-17T10:58:22Z
Indexed on
2010/05/17
11:00 UTC
Read the original article
Hit count: 126
I am trying to access certain pieces of data from an xml file, here is the problem.
###XML FILE
<products>
<product>
....
....
</product>
<product>
....
....
</product>
etc...
</products>
I know that the piece of data I need is in ($products->product->myProdNode
) I have this mapping (and many others) stored in my database as a string e.g.'product->prodCode
' or 'product->dedscriptions->short_desc
' How can I access this data by using the strings stored in my database.
Thanks for you help in advance!
© Stack Overflow or respective owner