Hi
I am interacting with a third party database, and they have sent me a php script for the search. The data is fetched via XsltProcessor and returned as HTML.
Is there a process by which I can extract the data before it is converted to html, either as xml or a data stream?
Thanks
Code:if ($strXML){ $xml = new DOMDocument; $xml->loadXML( $strXML ); $xsl = new DOMDocument; $xsl->load( $xmlpathtoxslfile ); $xsltproc = new XsltProcessor(); $xsltproc->importStyleSheet($xsl); $html = $xsltproc->transformToXML($xml); echo $html; }
Mmmm, my apologies - I am very inexperienced!! It seems to me now that the xml string is complete before going into the processor. I had thought that it was being added to via the xsl file but it would seem that that is not the case.
My bad!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks