|
Posted by scole954387 on 04/23/06 04:31
Hi,
I need help with these arrays. I'm using a class (XMLParser.class.php)
to parse the results of a REST request sent to Amazon's server that
returned XML data.
Here's two arrays returned:
With No Errors: http://www.regalit.com/test.html
Without An Error: http://www.regalit.com/test2.html
Do anyone have any suggestions to reformat these arrays so that they
are more easy to read/understand?
I'm thinking of something like having it reformated something like:
ARRAY[ITEMSEARCHRESPONSE][OPERATIONREQUEST]
ARRAY[ITEMSEARCHRESPONSE][OPERATIONREQUEST][REQUESTID]
ARRAY[ITEMSEARCHRESPONSE][ITEMS]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][ITEM]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][ITEM][ASIN]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][REQUEST][ISVALID]
ARRAY[ITEMSEARCHRESPONSE][ITEMS][REQUEST][ERRORS]
If anyone can help to reformat this array, it would be appreciated.
Keep in mind, I'm using PHP4 (don't have access to PHP5).
I'm open to getting a new class as well. I would need something open
source that would take the response and format it like the samples I
gave above. I would prefer not to have to install anything additional
like pear or similar.
Thanks,
S. Cole
Navigation:
[Reply to this message]
|