more useful options | |
PerlMonks |
Parsing XMLby calebcall (Sexton) |
on Mar 08, 2014 at 06:20 UTC ( [id://1077492]=perlquestion: print w/replies, xml ) | Need Help?? |
calebcall has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to parse some XML. I've been searching for some tutorials, reading perldocs, trying to find examples but can't find anything that's quite what I need. I'm trying to query namecheap.com's api to get a list of my domains and the date they expire. An example of how it outputs is:
I've tried many things, but I think I'm close with the following:
However, this returns nothing. I can use Data Dumper and dump out my $result and it gives me the info posted above (but in a hash). So I know it's getting the data. Just how do I specify the nested values? Do I start at the farthest out? (in this case ApiResponse?) I'm also not opposed to using something other than XML::Simple if there is a module that is easier to use or better suited to what I am trying to do. Any help would be appreciated. Thanks
Back to
Seekers of Perl Wisdom
|
|