Extract specific div element from page

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

 



Hey folks,

I need to pull the contents inside of a specific div out of a page, and
write it to a separate file. In this instance I am taking everything inside
of <div id="content"></div> tags from a wordpress blog, this will give me
only the content and not the menus, or other stuff. I need to do this
because the final document will be converted for viewing on a palm pilot.

Is anyone aware of a simple solution to this problem, short of parsing the
entire page and starting when I hit that div opening tag, and stopping when
I hit the closing tag? One problem I can see with this method is that I
would have to count divs inside of that div, otherwise I would end too early
on.

Any advice would be greatly appreciated.

Peace and Love,
distatica.

--
---------------------------------
Anthony Hiscox

Video Watch Group
Public Site Currently Under Development
Group Members Site Fully Operational
---------------------------------

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux