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
PROTECTED]>:
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.
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 troubles. I
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
Hi All,
I'm having HTML DOM troubles. Is there any way to output the *EXACT*
code
contained in a node (child nodes and all)? For instance, I perform a
$doc->loadHTML($file) and all
is well. I then search through the document for specific NODEs with
getElementsByTagName(). However, when I
8 matches
Mail list logo