Crude outside-the-box work-around...
You are only looking for
This should give you offsets to the beginning/end of each DIV tag.
I'm sure I've got a one-off error or I'm not tracking quite the right
numbers, or that I'm tracking extra numbers you don't need, but the
idea is sound.
--
Like Mus
[EMAIL PROTECTED] wrote:
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
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 t
[EMAIL PROTECTED] 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
Sorry, I immediatly thought about the client side.
No, I don't know there is any way on the server side with PHP.
Satyam
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Satyam" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, September 14, 2006 4:16 PM
Subject:
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
Quoting Satyam <[EMAIL PROTECTED]>:
Try the properties innerHTML or outerHTML, the later will include th
Try the properties innerHTML or outerHTML, the later will include the
enclosing tag.
Satyam
- Original Message -
From: "Michael Williams" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 14, 2006 2:12 AM
Subject: [PHP] DOM Question. No pun intended.
Hi All,
I'm having HTML DOM t
7 matches
Mail list logo