Help - Search - Member List - Calendar
Full Version: XML
WorkTheWeb Forums > Webmaster Resources > Perl Beginner Help
Support our Sponsors!
Brent Clark
Hi list

I have my code as so:

use XML::Simple;
my $xml = new XML::Simple (NoAttr=>1, RootName => 'data');

my $data =
$xml->XMLin("http://testbox/cgi-bin/ecco/scripts/common/bookinngsXmlDisplay.pl?lts");

use Data::Dumper;
print Dumper($data)

I have a perl script export an XML schema etc.

I now need to get the xml schema back.

with the code about I get this message:

Could not find
http://localhost/cgi-bin/ecco/scripts/comm...lDisplay.pl?lts
in at C:/Program Files/Apache
Group/Apache2/cgi-bin/ecco/scripts/common/getXmlAgents.pl line 104

So obviously it looking for the file and not making a http connection.

If anyone has any tips or advice, it would be great fully be appreciated

Kind Regards
Brent Clark

Randal L. Schwartz
QUOTE
"Brent" == Brent Clark <[Email Removed]> writes:

Brent> my $data =
Brent> $xml->XMLin("http://testbox/cgi-bin/ecco/scripts/common/bookinngsXmlDisplay.pl?lts");

Do you have a file with that name?

Why would you think that would work? The docs don't say that it
understands URLs.

Brent> So obviously it looking for the file and not making a http connection.

Yes, obviously.

Brent> If anyone has any tips or advice, it would be great fully be appreciated

Well, if XML::Simple doesn't grok a URL, perhaps you should give it a
file instead?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +
<[Email Removed]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.