exportAsXml not working?
Brought to you by:
bs_php,
nigelswinson
From: Marcus F. <ai...@un...> - 2004-08-28 02:50:19
|
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... |