Mic-Ls Posted January 15, 2007 Share Posted January 15, 2007 I use DomDocument to get an HTML page content and parse (loadHTMLFile).I use DOMXPath with contex to the DomDocument to query elements.say this is the query string"//table//tr"usingDOMXPath->queryto search all TR under TABLE in page.and then iterate on returned data.now to get the value of the returned data I use [b]nodeValue[/b]and what i get is only text, while <A> or other its just hide.so my question is how can I use the method above and also be able to get the full string in the result. (like innerHTML)<TABLE><TR><A href="void">hello</A></TR></TABLE>will output only the hello text without the A tag.I hope I Explain my problem properly.Thanks :) Link to comment https://forums.phpfreaks.com/topic/34244-xpathdom-query-elements-and-get-full-content/ Share on other sites More sharing options...
Mic-Ls Posted January 15, 2007 Author Share Posted January 15, 2007 any idea? Link to comment https://forums.phpfreaks.com/topic/34244-xpathdom-query-elements-and-get-full-content/#findComment-161508 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.