i managed to load a table (4x4 fields, links in first row) to simplexml, where on a link I expect returning only inner html of the link (bolds etc) but it returns whole element
foreach($xml->tbody->children() as $tr){
$row++;
for ($i=0;$i<4;$i++) {
$data[$row][$i]= $tr->td[$i]->asXML();
if($row==1)
{ $href[$i] = (string)$tr->td[$i]->a[0]['href'];
$titl[$i] = $tr->td[$i]->a[0]->asXML(); // PROBLEMATIC POINT
}
}
expected: 'link<b>text</b>'
returned: '<a href="....">link<b>text</b></a>' /e.g. whole 'a' element/
if I would add the (string) type setting, I would loose the inner formating of the link,
while the above $tr->td[$i]
returns only inner content of element td