Forum Moderators: coopster

Message Too Old, No Replies

Parsing/formating XML results in php documents

         

rwallin

6:09 pm on Sep 1, 2004 (gmt 0)



i have a php file that makes a request to an outside server and returns xml output into a variable in the php file.


// Get the result, a native PHP type, such as an array or string
$result = $proxy->GetCategoryList($parameters);

// Displaying result
echo($result);

The results are XML and I need to be able to parse and format it before I echo it out.

Had thought about using XSL but the results come back and I can't add the link to the style sheet (can;t figure out how to do that anyway)

have tried to use the xml parser function but I have not had any luck with that.

I have been able to use a php script called Unserialize.php. While it will parse out the information and display it as text and xml I can't figure out how to format it becuase even that is all stored in a single variable.

any ideas or other things I might try?

thanks
rodney

ergophobe

6:04 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome Rodney.

Sorry I can't be more help, but maybe these thread might be useful

[webmasterworld.com...] (with links to other threads on the topic)

Less germane:

[webmasterworld.com...]
[webmasterworld.com...]

I hope something there helps.

Tom