"; $xml=simplexml_load_string($myXMLData) or die("Error: Cannot create object"); print_r($xml); ?> Tove Jani Reminder Don't forget me this weekend!
to . "
"; echo $xml->from . "
"; echo $xml->heading . "
"; echo $xml->body; ?>
book[0]->title . "
"; echo $xml->book[1]->title; ?>
children() as $books) { echo $books->title . ", "; echo $books->author . ", "; echo $books->year . ", "; echo $books->price . "
"; } ?>
book[0]['category'] . "
"; echo $xml->book[1]->title['lang']; ?>
children() as $books) { echo $books->title['lang']; echo "
"; } ?>