DOM(xpath) data grabbing problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

I am grabbing some data from megavideo

I have fetched many data but i could not fetch the data in textarea, i.e the
value in texarea

I am using DOM with xpath method.

*my code.*

*$html = new DOMDocument(); *
* $html->loadHtmlFile( 'http://www.megavideo.com/?d=IIY1F3LY' );*
* $xpath = new DOMXPath( $html );*
* $inputs = $xpath->query('//*[@id="embedcode"]', $html);*
*for ($j = 0; $j < $inputs->length; $j++)
{
  $input = $inputs->item($j);
  echo $input->nodeName;
   $inputs->item(0)->getAttribute('value'). "</br>";
}*


Please experts give me any suggestion
 Gautam Das


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux