in reply to Perl and XML

First, I think you will need to access $doc->{camelids}{species}...etc... - the camelids needs to be explicitly there.

Second, I warmly recommend you use XML::Smart.

I've used both XML::Simple and XML::Smart, and working with Smart is much, much easier for me.

Replies are listed 'Best First'.
Re: Re: Perl and XML
by grantm (Parson) on Mar 17, 2004 at 08:34 UTC
    - the camelids needs to be explicitly there.

    No, with the default options the original script uses, the top level element will be discarded.