• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you parse a file and pull a block of markup?

#16
[eluser]tekhneek[/eluser]
in PHP HTML DOM you could do
Code:
$dom_obj = new simple_html_dom();

/**
* Where [id] is the id of the div element you want to find.
*/
$return = $dom_obj ->find('div[id]');

print_r($return); // usually an associative array of results.


Messages In This Thread
How do you parse a file and pull a block of markup? - by El Forum - 05-03-2009, 06:26 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-03-2009, 06:44 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 01:31 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:45 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:47 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 04:57 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 05:03 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 05:04 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 12:53 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 12:59 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 03:13 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-04-2009, 07:19 PM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 09:38 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 09:57 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 10:01 AM
How do you parse a file and pull a block of markup? - by El Forum - 05-27-2009, 10:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.