""Suja Emmanuel"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> I have written a code to hit a particular URL from my code and
> the code will return the rawdata. Now the rawdata itself is an XML file
> and I want to optn the XML file in internet explorer.
>
> The script which I am using is:

 <snip>

> When I execute the above code it creates an xml file in the given
> location and we need to manually open the file to view. I want to view
> the xml file in IE immediately after executing the code.
>
> I am using Windows system.
>

This will work for you:

use warnings;
use strict;

use LWP::Simple qw(getstore);
use IO::File;

my $url = 'http://seraja.com/EventManager.do';
my $pms = 
'?func=getEventDetails&sessionID=FA8169578A1FACFBCEBDC6DD5850C1A5&eventID=70280';
my $ie = 'C:/Program files/Internet Explorer/iexplore.exe';
my $tmp = 'C:/temp/iexml.xml';

getstore( $url . $pms, $tmp );
exec( qq|"$ie" $tmp| );

>
> Plese help me solving this issue, it's very urgent.
>

LOL

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to