in reply to Re^3: Parse XML into CSV Files
in thread Parse XML into CSV Files

Thanks for the reply,

This is what i have found in another post on here,

It seems to work fine until i get a XML TAG with no data in it. ie,
<Mileage> </Mileage>


When i print this variable to either the screen or an output file i get a value such as,

HASH(0x17ce550)

Any ideas how to stop this??

Replies are listed 'Best First'.
Re^5: Parse XML into CSV Files
by alexm (Chaplain) on Jul 22, 2009 at 09:26 UTC

    Any ideas how to stop this??

    This is the default behaviour for XMLin with empty elements, but you can change it, e.g.:

    my $config = XMLin( $xml, SuppressEmpty => "" );

    See XML::Simple for the details.