Closed Thread
Results 1 to 2 of 2

Thread: Extract xml before conversion

  1. #1
    jonnyfolk is offline Newbie
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Extract xml before conversion

    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;
    	}

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    jonnyfolk is offline Newbie
    Join Date
    Feb 2010
    Posts
    9
    Rep Power
    0

    Re: Extract xml before conversion

    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!!!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extract text from PNG file
    By iqessar in forum General Programming
    Replies: 2
    Last Post: 08-19-2010, 04:37 PM
  2. URL extract
    By D00M in forum Visual Basic Programming
    Replies: 6
    Last Post: 02-28-2010, 09:35 AM
  3. how to extract
    By safairon in forum PHP Development
    Replies: 5
    Last Post: 02-01-2010, 12:23 AM
  4. Help me extract frames from mp4
    By notbadday in forum C and C++
    Replies: 2
    Last Post: 05-11-2008, 10:16 AM
  5. Help me extract frames from mp4
    By notbadday in forum C# Programming
    Replies: 1
    Last Post: 05-11-2008, 10:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts