HI everyone,
anyone has an idea about how to access cdata in php here is the structure of my xml so you can have a clear idea
<call-handling id=”1″ code=”0″ name=”My status=”on”>
– <![CDATA[
<user-script><incoming-call status=”on”><anonymous-filter status=”off” baring-type=”voicemail”/>
<reject status=”off/></incoming-call></user-script>
]]>
</call-handling>
i need to access the tag reject for example . I am usign php5 and the Dom function
$dom = new DomDocument;
$dom->preserveWhiteSpace = FALSE;
$dom->loadXML($str);
$params = $dom->getElementsByTagName(‘reject’);
foreach ($params as $reject ) {
echo $reject -> getAttribute(‘status’);
}