Perl Module for .NET Dataset
vinitns
created: 2005-11-02 14:22:06
Hi I am new to Perl and was wondering if there is any module in Perl to manipulate the XML representation of a .NET Dataset. Please do let me know. Thanks, Vinit
Re: Perl Module for .NET Dataset
created: 2005-11-02 14:44:20

As long as the XML is indeed valid XML, then you have a whole slew of modules to choose from: [cpan://XML]

I [http://www.google.com/search?safe=on&q=.NET+Dataset+XML+example|Google'd] for such XML and came up with the following code that uses [cpan://XML::Simple]

use strict;
use warnings;
use Data::Dumper;
use XML::Simple;

my $xml = XMLin(\*DATA);

print Dumper $xml;

__DATA__

  
    Portland
    32
  
  
    Berlin
    20
  
  
    Pune
    16
  

Hope this helps, feel free to ammend your question with any specifics. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
Re: Perl Module for .NET Dataset
created: 2005-11-02 17:46:45
If you want to treat the data like a database (i.e. access and/or modify it with DBI and SQL), the DBD::AnyData module can work with a number of XML formats and may be able to work directly with what you've got, I'd have to see some sample data to know for sure though.

perlmonks.org content © perlmonks.org and jeffa, jZed, vinitns

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03