Removing xml element and strip extra space

Monte Milanuk memilanuk at invalid.com
Tue Jul 22 08:23:31 EDT 2014


On 2014-07-22, varun bhatnagar <varun292006 at gmail.com> wrote:
> I want to strip the space between *<nodePeriod>* and *</nodeInfo>*
> Can anyone suggest a way out to do that?

Look at str.rstrip() - by default it removes trailing whitespace
including carriage returns.




More information about the Python-list mailing list