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


Groups > comp.lang.python > #71525

Re: Need help to write data onto an XML file after reading data from another xml file

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'parameters': 0.04; 'messages.': 0.05; 'output': 0.05; 'subject:file': 0.07; 'users,': 0.07; 'subject:help': 0.08; 'guys.': 0.09; 'historically': 0.09; 'links.': 0.09; 'subject:xml': 0.09; 'url:network': 0.09; 'url:download': 0.12; 'thread': 0.14; '.py': 0.16; 'anyways,': 0.16; 'commented': 0.16; 'dire': 0.16; 'formatted': 0.16; 'messy': 0.16; 'received:74.208.4.195': 0.16; 'subject: \n ': 0.16; 'subject:XML': 0.16; 'subject:after': 0.16; 'attach': 0.16; 'files.': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'not,': 0.20; 'help.': 0.21; 'creating': 0.23; 'header:User-Agent:1': 0.23; '(such': 0.24; 'file.': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'am,': 0.29; 'xml': 0.29; "i'm": 0.30; 'work.': 0.31; 'code': 0.31; 'names.': 0.31; 'node': 0.31; 'file': 0.32; 'stuff': 0.32; 'quite': 0.32; 'everyone': 0.33; 'becomes': 0.33; 'not.': 0.33; "i'd": 0.34; 'subject:from': 0.34; 'could': 0.34; 'message.': 0.35; 'add': 0.35; 'really': 0.36; 'subject:data': 0.36; 'useful': 0.36; 'thanks': 0.36; "i'll": 0.36; 'to:addr :python-list': 0.38; 'files': 0.38; 'url:action': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'mentioned': 0.61; 'new': 0.61; 'making': 0.63; 'email addr:gmail.com': 0.63; 'information': 0.63; 'subject:Need': 0.64; 'become': 0.64; 'here': 0.66; 'frequently': 0.68; 'readers': 0.68; 'received:74.208': 0.68; 'further,': 0.74; 'links,': 0.74; 'glad': 0.83; 'id,': 0.84; 'destination': 0.91
Date Tue, 13 May 2014 22:09:47 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Need help to write data onto an XML file after reading data from another xml file
References <2c8cb313-50f6-439b-a979-bd320a2c7b2c@googlegroups.com>
In-Reply-To <2c8cb313-50f6-439b-a979-bd320a2c7b2c@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:VN+crdS6cTbiHNyyEUyDTOSecRWp9wyeuWAdMVbx4nz 2Ovj4YeKf0Mtou5GXJi3PhgF6DV+PmJA2zj6an/FeqihJiOHog PBbifrsiJwyGaKnufcAOCi0FhzreY0OVJGlOOJM6B4dqnGdDXV JPivK/sD0nP8IOqXoilVVBmVM2chKEldBWJ6vhGdtWx9c9rhIt swn8KjqI5HWt/Jmil2ULz39beZauTyXENJYa9ilx9bBFS9yEtF VXECqOmfGPvwUrGFuh5g0nOnycZxKF83T/iEjztF6SH1CgPtKw Jo4Ue2RDDbrtUYuWR8beZUhMXG2zOmoJIacxHcvs3YOGumxpO8 8f+alcxtbWaSG86maUsQ=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9987.1400033402.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400033402 news.xs4all.nl 2943 [2001:888:2000:d::a6]:53685
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71525

Show key headers only | View raw


On 05/13/2014 10:31 AM, varun7rs@gmail.com wrote:
> Hello Users,
>
> I am in dire need of your help. I have been working on this code for quite some time and it is making me restless. All I am trying to do is,
>
> 1. Read data from an xml file. Source: http://sndlib.zib.de/coredata.download.action?objectName=germany50&format=xml&objectType=network
>
> 2. The data I'm concerned about is the node ID, co-ordinates, capacity of the links, source and destination names.
>
> 3. I'm creating a topology with this information and the topology is same as the one given in the xml file. But, I'd like to add a few extra parameters and demands which I have mentioned in the .py file.
>
> 4. This is where I am faltering. I am just not able to create this topology. The file has also become really messy as I tried a lot of weird stuff and commented it out as it did not work.
>
> 5. I'll attach the relevant files and I'd like to write the output onto a new xml file.
>
> I'd be glad if any of you could help me out. I'm indebted to you guys. Oh I was not aware that I could  attach files. Anyways, here is the link to the files I'm working on
> https://www.dropbox.com/sh/i8h321y7c9c60vt/AADzDj7oOM8YU76Ww6W4LIPYa
>
> Thanks a lot everyone
>

Try to include the relevant information in your message.  Many people 
cannot, or will not, follow links.  Further, those links are frequently 
transient (such as your dropbox one), which means the message thread 
becomes historically useless.  So a link to point to a particular 
library is useful and practical, one to your source code is not.

And many readers cannot see attachments or html formatted messages.



-- 
DaveA

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


Thread

Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-13 07:31 -0700
  Re: Need help to write data onto an XML file after reading data from another xml file Dave Angel <d@davea.name> - 2014-05-13 22:09 -0400
  Re: Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-13 23:49 -0700
    Re: Need help to write data onto an XML file after reading data from another xml file Dave Angel <davea@davea.name> - 2014-05-14 03:32 -0400
      Re: Need help to write data onto an XML file after reading data from another xml file varun7rs@gmail.com - 2014-05-14 06:42 -0700
        Re: Need help to write data onto an XML file after reading data from another xml file Chris Angelico <rosuav@gmail.com> - 2014-05-14 23:49 +1000

csiph-web