exportAsXml not working?
Brought to you by:
bs_php,
nigelswinson
From: Marcus F. <ai...@un...> - 2004-08-28 15:21:42
|
**FOUND the problem...** on line 1232 appears: if ($absoluteXpath == '/') $absoluteXpath = ''; it SHOULD read if ($absoluteXPath == '/') $absoluteXPath = ''; with Path capitalized... ------------------------------------------ Hey guys Any idea why this fails? include( "cgi-bin/EbayConnection.php" ); $foo = new EbayConnection( true ); include( "cgi-bin/XMLFunctions.php" ); require_once( "cgi-bin/XPath.class.php" ); if( $cmd == "search" ){ $xml = $foo->search( $criteria ); $xpe = new XPath(); $xpe->setVerbose( 5 ); if( $xpe->importFromString( $xml ) ){ echo "ok"; }else{ echo "no"; } if( $xpe->exportAsXml( "/" ) ){ echo "ok again"; }else{ echo "moo"; echo $xpe->getLastError(); } } the line: $xpe->exportAsXml( "/" ) ONLY works when I put nothing in that field. -- Uni Studios ai...@un... |