Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Does a package like this exist
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 8th November 03:49
christoph.boget
External User
 
Posts: 1
Default Does a package like this exist



Not wanting to re-invent the wheel, I'm wondering if there is a package out
there that can read in an HTML file and allow you to manipulate and dissect
it much like you can in javascript? For example, functionality similar to
(though, not necessarily the same as) getElementById(), .innerHTML, etc.

I need to write a conversion script that reorganizes the contents of a large
number of HTML files and I'm hoping that there is something out there that
might make this task a bit easier. I've done some searching on Google but
didn't really find anything. I'm hoping that someone might be able to point
me to something I might have missed.

thnx,
Christoph
  Reply With Quote


 


2 8th November 03:49
zeldorblat
External User
 
Posts: 1
Default Does a package like this exist



<http://www.php.net/dom>
  Reply With Quote
3 8th November 03:49
External User
 
Posts: 1
Default Does a package like this exist


On Fri, 4 Jan 2008 12:33:11 -0500

Hi,

Seems like you might want to look at the DOM extension and friends.

Start here:

http://www.php.net/manual/en/ref.dom.php
http://www.php.net/manual/en/ref.simplexml.php
http://www.php.net/manual/en/ref.xml.php

HTH,
GM

--

Greg Maruszeczka

http://websage.ca
skype: websage.ca
googletalk: gmarus
  Reply With Quote
4 8th November 03:49
mydarb
External User
 
Posts: 1
Default Does a package like this exist


Hopefully you're using PHP5:

http://php.net/dom to interact with the DOM

http://php.net/tidy to cleanup the HTML if needed

If you're on PHP4:

http://php.net/domxml

Brady
  Reply With Quote
Reply


Thread Tools
Display Modes




666