Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'output': 0.05; '22,': 0.09; 'subject:extra': 0.09; 'subject:xml': 0.09; 'cc:addr:python- list': 0.11; 'scrape': 0.16; 'wrote:': 0.18; 'written': 0.21; 'example': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'this:': 0.26; 'certain': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'file': 0.32; 'there.': 0.32; 'probably': 0.32; 'url:python': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'doing': 0.36; 'url:org': 0.36; 'pm,': 0.38; 'space': 0.40; 'url:mail': 0.40; 'blank': 0.60; 'removing': 0.60; "you're": 0.61; 'to:addr:gmail.com': 0.65; 'jul': 0.74; 'subject:space': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=VRwJvS204ic2a8ss/JCt4vVbSJR6oi6/NFds/YbbKrA=; b=YhP97F4mbIEvUe89+rNiH2SGUiBGhuL0eiY3a1ci9QfZjZ1YHG9DBrDqfpGGhbr3iF SlcLmLQgE7BsIMu7FcY7xvksyOZuQ22o0+BMtYdVDMk4NuYjDyH7PBYVTFRMpr2kWveL AFyAAVXK4nsRTuG5iWrqdpJnza8GJbaIBSVhgLIQAxTwV+4+9C5Upnf4DhPb2Bpx8++l bDD4Tumy8g+/G37CK4AA3NfAZCSyMQAwoKbBuEQXGNoGYex/SkQcuADBhFfgH+2yxzXc eHrqH97TAeo+2QX5zMbzrEUnraVavH7EXbFKQJu3P8wtKHgQnvenic9H1gfohd7yNcAO HVQA== MIME-Version: 1.0 X-Received: by 10.52.164.11 with SMTP id ym11mr16033216vdb.74.1406061164263; Tue, 22 Jul 2014 13:32:44 -0700 (PDT) Date: Tue, 22 Jul 2014 16:32:44 -0400 Subject: Re: Removing xml elemient and strip extra space From: Joel Goldstick To: Monte Milanuk Content-Type: multipart/alternative; boundary=001a11c22fb43a7d7804fece2076 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406061173 news.xs4all.nl 2970 [2001:888:2000:d::a6]:46550 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75017 --001a11c22fb43a7d7804fece2076 Content-Type: text/plain; charset=UTF-8 On Jul 22, 2014 1:41 PM, "Monte Milanuk" wrote: > > On 2014-07-22, varun bhatnagar wrote: > > I just want to scrape out > > But the way I have written my xsl file it is removing it but it is also > > leaving a blank space there. I want my output to look like this: > > This is the part where a certain amount of example code showing what > you're doing would probably help people diagnose where the problem is... You might look at beatifulsoup4 > > > -- > https://mail.python.org/mailman/listinfo/python-list --001a11c22fb43a7d7804fece2076 Content-Type: text/html; charset=UTF-8


On Jul 22, 2014 1:41 PM, "Monte Milanuk" <memilanuk@invalid.com> wrote:
>
> On 2014-07-22, varun bhatnagar <varun292006@gmail.com> wrote:
> > I just want to scrape out <nodeBase base="0" />
> > But the way I have written my xsl file it is removing it but it is also
> > leaving a blank space there. I want my output to look like this:
>
> This is the part where a certain amount of example code showing what
> you're doing would probably help people diagnose where the problem is...

You might look at beatifulsoup4
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list

--001a11c22fb43a7d7804fece2076--