Acessar objeto SimpleXML
Bom dia!
Pessoal, não sei se é o sono ou estou me passando por besteira, mas porquê não consigo acessar um objeto da seguinte forma:
print_r($table->results);
dando um print_r($table) tenho o seguinte:
SimpleXMLElement Object
(
[results] => SimpleXMLElement Object
(
[tr] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[class] => dr-table-subheader rich-table-subheader Grid-Titulo
)
[th] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[class] => dr-table-subheadercell rich-table-subheadercell Grid-Titulo
[id] => j_id_jsp_52511974_1:tbGridIda:j_id_jsp_52511974_7header
[scope] => col
)
[div] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => j_id_jsp_52511974_1:tbGridIda:j_id_jsp_52511974_7header:sortDiv
)
[p] => Sequência
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[class] => dr-table-subheadercell rich-table-subheadercell Grid-Titulo
[id] => j_id_jsp_52511974_1:tbGridIda:j_id_jsp_52511974_10header
[scope] => col
)
[div] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => j_id_jsp_52511974_1:tbGridIda:j_id_jsp_52511974_10header:sortDiv
)
[p] => Via
)
)
)
)Discussão (2)
Carregando comentários...