in reply to XML to CSV conversion

In XML::XSH2, a wrapper around XML::LibXML:
open file.xml ; echo //text() ;

I had to fix your XML to be well formed: "se-ssion" should not contain the hyphen and "/user_location" should not start on a new line.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: XML to CSV conversion
by tousifp (Novice) on Jan 14, 2014 at 13:50 UTC

    Sorry .. I didn't get your point. What are you trying to echo?

      All the text without tags. It is returned as a nodeset, so you can iterate over it and do whatever else with it.
      for my $t in //text() { perl { chomp $t; print "$t," } }
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ