Permalink
Browse files

use XML::Validate::LibXML explicitly to get indepedencies corrected.

  • Loading branch information...
1 parent 6acca69 commit 46c4da67550707af03c49f88aad2ef3675edcd43 hunter committed Jan 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Weather/Underground/Forecast.pm
View
4 lib/Weather/Underground/Forecast.pm
@@ -3,7 +3,7 @@ use Moose;
use namespace::autoclean;
use LWP::Simple;
use XML::Simple;
-use XML::Validate;
+use XML::Validate::LibXML;
use Data::Dumper::Concise;
@@ -179,7 +179,7 @@ sub _build_raw_data {
my $content = get( $self->_query_URL );
die "Couldn't get URL: ", $self->_query_URL unless defined $content;
- my $xml_validator = new XML::Validate( Type => 'LibXML' );
+ my $xml_validator = new XML::Validate::LibXML;
if ( !$xml_validator->validate($content) ) {
my $intro = "Document is invalid\n";
my $message = $xml_validator->last_error()->{message};

0 comments on commit 46c4da6

Please sign in to comment.