If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL and XML

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-04, 08:07
bxs122 bxs122 is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
MySQL and XML

I've recently completed two projects -- the first was a phpBB extension utilizing new querys with MySQL and the second was an ASP utilizing SQLServer 2000 with XML and XSL transforms.
I am onto a new project and would love to utilize PHP and MySQL where the result set from MySQL is in XML format so that I can process it with XSL transforms. SQLServer 2000 can return an XML formatted result set and I found this ideal for my last project -- can MySQL do the same or is there a PHP class out there that will take a MySQL result set and convert it to XML?

TIA,
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 10:15
vanekl vanekl is offline
Registered User
 
Join Date: Nov 2003
Posts: 91
When starting the mysql client program, add the option -X and
your output will be formatted as XML.
Reply With Quote
  #3 (permalink)  
Old 02-09-04, 10:37
bxs122 bxs122 is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanx very much

I am not using the mysql client utility but instead connecting to the server and running queries from a PHP application.

Can I get XML like the mysql client program is?
Reply With Quote
  #4 (permalink)  
Old 02-09-04, 10:58
vanekl vanekl is offline
Registered User
 
Join Date: Nov 2003
Posts: 91
As far as I'm aware, XML output is only provided by the mysql
client program and the mysqldump program, not the server itself.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On