Hi monkey_boy,
Thanks kool, It's working fine. But, I am getting xml content is it possible to check. And also, i am not allow here to use system function i want sample code..
For ex if i validate xml file with xsd file i use below code
like i want code please
use XML::LibXML;
my $schema_file = 'po.xsd';
my $document = 'po.xml';
my $schema = XML::LibXML::Schema->new(location => $schema_file);
my $parser = XML::LibXML->new;
my $doc = $parser->parse_file($document);
eval { $schema->validate($doc) };
die $@ if $@;
print "$document validated successfully\n";
|