
redgenieuk
-
Posts
2 -
Joined
-
Last visited
Community Answers
-
redgenieuk's post in DomDocument; hasChildNodes but Foreach not showing children? was marked as the answer
Stupidity has been found. I am answering my own question as I cannot see how to remove it; but hopefully it might help someone else one day!
Answer is:
foreach ($txtnode1->parentNode as $child) should be
foreach ($txtnode1->parentNode->childNodes as $child)