Quantcast
Channel: Parsing XML into hash with XML::Parser in Perl - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


Parsing 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

Browsing latest articles
Browse All 2 View Live


Latest Images