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


Groups > comp.lang.python > #74993 > unrolled thread

Re: Removing xml element and strip extra space

Started byMonte Milanuk <memilanuk@invalid.com>
First post2014-07-22 12:23 +0000
Last post2014-07-22 12:23 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#74993 — Re: Removing xml element and strip extra space

FromMonte Milanuk <memilanuk@invalid.com>
Date2014-07-22 12:23 +0000
SubjectRe: Removing xml element and strip extra space
Message-ID<mailman.12179.1406031826.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web