Jump to content

simpleXML object as viewable


rossmurphy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.