PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i am comparing for text contents that are repeated in 2 web pages and removing the repeated contnt...after comparing for the similar elements , when i try to remove the repeated elements , i get an error as follows "Fatal error: Call to a member function removeChild() on a non-object in c:\wamp\www\b.php on line 38 "..i have shown the error line as bold in the code..how do i correct it
$srcboth has all the repeated text content .. now i would like to remove all the repeated text content from the web page .. using a foreach loop if i try to remove each of the elements i get this error "Fatal error: Call to a member function removeChild() on a non-object in c:\wamp\www\b.php on line 38 " ..how to remove the elements from the web page
i found the problem but i dont know how to correct it
right now i am only deleting only the variable ...but i should be removing the node instead ..
i should create a DOMNodeList with matching text cotent using xpath so that the node can be removed using remove child how do i do it ..