↧
Answer by creaktive for Parsing XML into hash with XML::Parser in Perl
XML::Hash::LX::xml2hash() is close to what you're looking for:#!/usr/bin/env perluse strict;use warnings qw(all);use Data::Dumper;use XML::Hash::LX;my $hash = xml2hash q(<?xml version...
View ArticleParsing XML into hash with XML::Parser in Perl
I want to parse a simple XML document to hash.<?xml version ="1.0"?><catalog><book id = "bk101"><author>Bob</author><title>Batman</title></book><book...
View Article