Jump to content

Printing domDocument


graham23s

Recommended Posts

Hi Guys,

 

I was wondering if there was any way i can print the contents to screen a domDocument, the path isn't working so it thought i could have a look and go from there.

 

code:

 

        $dom = new DOMDocument();
        $dom->loadHTML($html);
       
        $xpath   = new DOMXPath($dom);
        $results = $xpath->query("/html/body/div[3]/center/table/tbody/tr[1]/td/table/tbody/tr/td[2]/div[@id='content']/table[1]/tbody/tr[2]/td[2]/em/font/span");

 

thanks guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/196782-printing-domdocument/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.