Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: Hi Guys... Reading XML using Jython code Date: Fri, 10 Oct 2014 00:37:40 +0000 (UTC) Organization: A noiseless patient Spider Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 10 Oct 2014 00:37:40 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="3343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Hlc/N5VXIkgl7/IViQsL499Rpnuqo02s=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:c25203rE7flGd8wPU0UXxBOv3Bc= Xref: csiph.com comp.lang.python:78918 On Thu, 09 Oct 2014 05:30:21 -0700, Venugopal Reddy wrote: > XML parsing using Jython.. > In my XML file , One main node is there and Multiple child tags are > there. But In Child tags , same name repeated twice (like tag > repeated twice) > Please help me on this.... Normally, when pulling data from an xml document, you'll get a collection of some sort: Are you trying to select every subject of every child, the first subject of every child, the last subject of every child, or some nth subject of every child? You may need to go back to your specification code and look again at how you're specifying which node(s) you want to select. -- Denis McMahon, denismfmcmahon@gmail.com