in reply to Re^2: XML::Twig and whitespacesin thread XML::Twig and whitespaces
Did you try "using the keep_spaces option when you create the twig" as indicated in my previous answer? Did it not do what you want?