downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Introduction> <wddx_unserialize
Last updated: Fri, 11 Dec 2009

view this page in

XML Parser



Introduction> <wddx_unserialize
Last updated: Fri, 11 Dec 2009
 
add a note add a note User Contributed Notes
XML Parser
skanand3 at yahoo dot com
12-Oct-2009 12:14
foreach ($x->childNodes AS $item)
  {
  $weather = $x->getElementsByTagName( "description" );
  $weather = $weather->item(1)->nodeValue;
  }
    $weather=str_replace("</a>","",$weather);
    $weather=strstr($weather, '<img');
    $weather=strrev($weather);
    $weather=strstr($weather, '>b/<'); 
    $weather=strrev($weather);
    echo $weather;

Weather info without rss provider link visit http://www.srirangaminfo.com
nat
04-Sep-2009 07:19
An event-based parser such XML Parser is preferable for large files, because tree-based parsers must fully load the file into memory in order to parse the XML. Event-based parsers do not need to load the entire file into memory to begin parsing.
pavel dot lishin at gmail dot com
28-Jul-2009 04:33
If you're wanting to actually work with XML data as it was intended, treating it as a tree, try http://us2.php.net/manual/en/book.simplexml.php.

Introduction> <wddx_unserialize
Last updated: Fri, 11 Dec 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites