Re: DOM Question. No pun intended.

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

 



Rob,

I wasn't aware that that would work. I mean I suppose it should, but basically
this is what I'm doing:

1) Create a new DOMDocument
2) DOMDocument->loadHTML()
3) find the elements I want with getElementsByTag() then finding the one with
the correct attributes

. . .at this point, I need the equivalent of DOMDocument->saveHTML() so that it outputs the *exact* html content. Are you saying that saveXML() will do what I
want it to do; tags and all?

Regards,
Mike


Quoting Rob <rrichards@xxxxxxxxxxxxxxxx>:

mwilliams@xxxxxxxxxxxxxxxxxxxxxxx wrote:
Satyam,

I don't see any "innerHTML" or "outerHTML" in relation to PHP DOM. I'm familiar with them from a Javascript standpoint, but no references when it comes to PHP
DOM.

Regards,
Mike

Now that you have the element, why not just call:
$doc->saveXML($node);

Rob


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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