Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74993

Re: Removing xml element and strip extra space

From Monte Milanuk <memilanuk@invalid.com>
Subject Re: Removing xml element and strip extra space
Date 2014-07-22 12:23 +0000
References <CAGxOggEanm=FmXLgcP4tRuwSzvURANeNtShZbFxeGKMSSXZAmA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12179.1406031826.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-07-22, varun bhatnagar <varun292006@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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Removing xml element and strip extra space Monte Milanuk <memilanuk@invalid.com> - 2014-07-22 12:23 +0000

csiph-web