Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP SimpleXML - Get Node/Attribute Values

<?php
$xml=simplexml_load_file("note.xml") or die("Error: Cannot create object");
echo $xml->to . "<br>";
echo $xml->from . "<br>";
echo $xml->heading . "<br>";
echo $xml->body;
?>
 
PREVIOUS NEXT
Tagged: #PHP #SimpleXML #Get #Values
ADD COMMENT
Topic
Name
3+7 =