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:2
Author:carlos
Date:2010-09-22 07:31:45
Update:2014-04-23 03:40:33
 

  1. XML echo to client instead of writing to file   Reply   Report abuse  
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,

  2. Re: XML echo to client instead of writing to file   Reply   Report abuse  
Picture of Mike J
Mike J
2014-04-23 03:40:33 - In reply to message 1 from carlos
Hello,

Have you managed to make this work? I am new and would appreciate instruction on how I can convert my XML file into a SQL database

Thanks

Mike