Thread: PHP5 HTML DOM
September 12th, 2006, 05:50 PM #1
- Join Date
- Sep 2004
- Your living room...
PHP5 HTML DOM
Quick question regarding PHP5's newest DOM abilities. They include HTML, and while it's possible (with a little finagling) to obtain, say, a specific DIV by it's 'id', it seems nearly impossible (short of looping through the items attributes and children) to output it's EXACT contents. Meaning, if a DIV looks like so:
<div id='my_div'> <table> some table related stuff </table> </div>
FYI, my ultimate goal is to be able to "screen scrape" based on a DOMElement's 'id'. I've been using Regular Expressions to accomplish this, and, while very handy, I'd rather be 100% sure I'm getting what I ask for based on a specific 'id' rather than having to try and parse with RegEx.
Thanks in advance!I reserve the right to contradict myself. . .
September 27th, 2006, 06:45 AM #2
- Join Date
- Sep 2006
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By BITM@D in forum Applications and Operating SystemsReplies: 21Last Post: February 15th, 2010, 10:21 AM
By asma123 in forum Graphic Design and Digital PhotographyReplies: 3Last Post: April 16th, 2005, 07:37 AM
By presence06 in forum General Tech DiscussionReplies: 5Last Post: April 14th, 2005, 11:50 PM
By cracked in forum Webmastering and ProgrammingReplies: 5Last Post: November 24th, 2003, 03:13 PM