http://www.perlmonks.org?node_id=1025424


in reply to Check if XML element exists

If you want an array always, use the ForceArray option.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Check if XML element exists
by johnfl68 (Scribe) on Mar 26, 2013 at 04:17 UTC

    Thanks:

    I added:

    ForceArray => ['codeshare']

    to the XMLin, and that seems to take care of things.

    Thanks again!

    John