in reply to hi i want to retrieve the element and values from xml document

Using xsh, a wrapper around XML::LibXML:
open file.xml ; for //text() { if xsh:matches(., '\S') echo concat(name(..), ':') (.) ; }
Date: 2003/07/04 CustomerId: 123 CustomerName: Acme Alpha ItemId: 987 ItemName: Coupler Quantity: 5 ItemId: 579 ItemName: Clasp Quantity: 1
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ