please help me need to get value by attributes for example
$xml = simplexml_load_file($filename);
print $xml->attribute->name('header');
output : HEADER only
and xml file
<template name="header" type="tpl">
**HEADER**
</template>
<template name="body" type="css">
BODY
</template>
<template name="footer" type="tpl">
FOOTER
</template>