rossmurphy Posted August 11, 2009 Share Posted August 11, 2009 How can i print the xml below as a viewing friednly format so it actually has all the xml tags etc in it?? SimpleXMLElement Object ( [metadata] => SimpleXMLElement Object ( [column] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => number [name] => loyaltyLevel ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => number [name] => loyaltyPoints ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => number [name] => qualifiedBonus ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => number [name] => unqualifiedBonus ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => number [name] => exchangeRate ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [datatype] => text [name] => currency ) ) ) ) [rows] => SimpleXMLElement Object ( [row] => SimpleXMLElement Object ( [@attributes] => Array ( [currency] => EUR [exchangeRate] => 0.0 [loyaltyLevel] => 3 [loyaltyPoints] => 662 [qualifiedBonus] => 56018.73 [unqualifiedBonus] => 0.0 ) ) ) ) Link to comment https://forums.phpfreaks.com/topic/169789-simplexml-object-as-viewable/ Share on other sites More sharing options...
rossmurphy Posted August 11, 2009 Author Share Posted August 11, 2009 OR is there a way to make a uri call and have the returned xml put into a var as an encoded string? without having the xml put into an array such as the simplexml_load_file function does? Link to comment https://forums.phpfreaks.com/topic/169789-simplexml-object-as-viewable/#findComment-895738 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.