Load('root.xml');
$chield1 = $xmldoc->getElementsByTagName('child1')->item(0);
$node = $chield1->getAttributeNode('chield1_attribute');
echo "";
echo "
";
echo "Get Attribute from XML file and attribute value";
echo "";
echo "";
echo "Attribute Name is :".$node->name;
echo "
Attribute Value is :".$node->value;
echo "";
echo "";
?>