Re: [PHP] DOM Question. No pun intended.

2006-09-15 Thread Richard Lynch
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

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob Richards
[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

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread mwilliams
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

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob
[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

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Satyam
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.

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread mwilliams
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

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Satyam
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&#

[PHP] DOM Question. No pun intended.

2006-09-13 Thread Michael Williams
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