Re: [PHP] parsing xml/string

2002-01-16 Thread Hank Marquardt
I guess I'd setup a global array $TAGS, create an entry in the array with your open_tag handle, $TAGS[$tagnamepassedtohandler], use the data handler to populate it $TAGS[$currenttag].=$data; When you're done parsing the xml you have one big array with all the tags that you can either use extract

[PHP] parsing xml/string

2002-01-16 Thread Sandeep Murphy
Hi, I have an xml output with tags like 123 sands I could parse the output using expat to display it the way i want or as a string but what I need is to store the values separately in different variables like $id for sessionid, $user for user and so on.. to be manipulated later... Any suggest