Login   Register  
PHP Classes
elePHPant
Icontem

XML echo to client instead of writing to file

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MySQL to XML - XML to MySQL  >  All threads  >  XML echo to client instead of writing to file  >  (Un) Subscribe thread alerts  
Subject:XML echo to client instead of writing to file
Summary:XML echo to client instead of writing to file
Messages:1
Author:carlos
Date:2010-09-22 07:31:45
 

  1. XML echo to client instead of writing to file   Reply  
Picture of carlos
carlos
2010-09-22 07:31:45
Hi, this class works fine.
Question, at class.mysql_xml.php"


$xml_file = fopen($filename, "w" );
$this->xml->write_file_handle( $xml_file );

How can I echo the xml_file to the client? instead of writing it to a file.

say for example:

echo $this->xml->showXML();

it same with DOMDocument::saveXML where it dumps the internal XML tree back into a string

Thanks,