Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9538
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <hackingkk@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'string.': 0.04; 'subject:Python': 0.06; 'subject:xml': 0.07; 'python': 0.08; 'subject:characters': 0.09; 'subject:file': 0.13; 'library': 0.15; 'literal': 0.23; 'xml': 0.25; 'string': 0.26; 'developing': 0.27; 'cc:addr:gmail.com': 0.30; 'subject:?': 0.31; 'this.': 0.31; 'file.': 0.32; 'message-id:@gmail.com': 0.32; 'to:addr:python- list': 0.34; 'header:User-Agent:1': 0.34; 'all.': 0.35; 'question': 0.35; 'some': 0.37; 'doing': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'cc:2**2': 0.38; 'put': 0.38; 'data': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'organisation': 0.67; 'cc:addr:yahoo.com': 0.77 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=9a+CRQZo8OE1ZOOYbHxW6KRrIYa2bzQidaZ1n8wJx8k=; b=GLHtN0PA0DU4s3FKKq7osjzC4KdtQl3YAua9CYdH1dKOnTz0cPYol8wE81ZG8YV+VQ s8zTtdeD8LDzEZWq5YTXKzyGWf/KSraWqnkAbgZPb4dJ3Doxzh8gHivqv6n89KctUiAj qQ+bYRB9rHjfmNeV7E80TSSpdUD4tv2z4rEtk= |
| Date | Fri, 15 Jul 2011 17:23:06 +0530 |
| From | hackingKK <hackingkk@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | how to get Python to insert special characters in an xml file? |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Cc | Aditi Patil <aditi.patil1990@gmail.com>, ashwini shinde <ashwinids308@gmail.com>, ankita shanbhag <ankitargs@gmail.com>, Sneha Sawant <sneha.thinkpad@yahoo.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1061.1310730808.1164.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1310730808 news.xs4all.nl 23958 [2001:888:2000:d::a6]:40887 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:9538 |
Show key headers only | View raw
Hello all. I am currently developing a python application which reads and writes some data to an xml file. I use the elementTree library for doing this. My simple question is that if I have some thing like & as in "kk & company " as organisation name, how can I have Python take this as a litteral string including the & sign and put in the <orgname> </orgname> tag? Even same applies while reading the file. I would like to have the & come as a part of the literal string. Happy hacking. Krishnakant.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
how to get Python to insert special characters in an xml file? hackingKK <hackingkk@gmail.com> - 2011-07-15 17:23 +0530
csiph-web