|
Posted by Andre-John Mas on 11/14/07 22:46
On Nov 14, 4:54 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>
> http://www.php.net/dom
>
> <?php
> $doc = new DOMDocument();
> $doc->loadHTMLFile('test.html');
>
> //just by tagname:
> $title= $doc->getElementsByTagName('title')->item(0);
>
> //or XPATH
> $xpath = new DOMXPath($doc);
> $tables = $xpath->query('//table');
> ?>
> --
> Rik Wasmus
Thanks for the answer, though I am not sure how go from here to having
a sub-section of the HTML text. Basically what I am wanting to do is
extract the body section of an HTML document, to be able to insert it
into another.
Andre
Navigation:
[Reply to this message]
|