Using XML with Perl and MySql
Hi,
I am working on a web portal which uses MySql & perl. I thought of using XML so that I can use XMLHTTPREQUEST. Since I am new to this field I need guidance as to how to go ahead.
I have installed MySql & Perl. I read some where that I need a Module for XML in perl. Could u tell me how to do the same .
The Webpage contains some data along with tables which shows the content of the database. I have a button which when clicked needs to update the table ( but NOT by refreshing the entire page , so I am planning to use XMLHTTPREQUEST )… So I mus t have some xml file which when called must do the needful. Could u guide me as to how to go ahead and make the Perl file and XML …..
Thanks
[740 byte] By [
rakeshxp] at [2007-11-19 1:54:32]

# 1 Re: Using XML with Perl and MySql
Yes, there is a multitude of XML related perl modules, a quick search on cpan http://search.cpan.org/search?query=xml&mode=module.
General module installation instructions can be found here http://www.cpan.org/modules/INSTALL.html
But let me tell you working with XML on the client side, is an absolut pain, crossbrowser compability is near impossible to work out, in anything larger than a few lines of code.
khp at 2007-11-10 3:27:57 >

# 3 Re: Using XML with Perl and MySql
So what do u suggest ?
To avoid using xml ?, there are a couple of ways to send http requests to the server and retrive data, without reloading the entire page, here is one example http://www.dhtmlcentral.com/tutorials/tutorials.asp?id=11, which uses an html script element to send a http get request and have the returned script act on the page. Another option is to use an img element, but that's probably less powerfull.
khp at 2007-11-10 3:29:56 >
