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


Groups > comp.lang.python > #95971

Re: XML Binding

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <burak.arslan@arskom.com.tr>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'suggestions.': 0.09; 'python': 0.10; 'suggest': 0.15; 'burak': 0.16; 'examples:': 0.16; 'file?': 0.16; 'from:addr:arskom.com.tr': 0.16; 'from:addr:burak.arslan': 0.16; 'from:name:burak arslan': 0.16; 'grows.': 0.16; 'message-id:@arskom.com.tr': 0.16; 'received:arskomhosting.com': 0.16; 'subject:XML': 0.16; 'wrote:': 0.16; 'pfxlen:0': 0.18; 'all,': 0.20; 'library': 0.20; 'to:2**1': 0.21; 'not,': 0.22; 'parsing': 0.22; 'visible': 0.22; 'xml': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'raw': 0.27; 'objects': 0.29; 'classes': 0.30; 'creating': 0.30; 'gets': 0.35; 'best,': 0.35; 'files,': 0.35; 'but': 0.36; 'there': 0.36; 'data.': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'data': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.40; 'hello,': 0.40; 'some': 0.40; 'charset:windows-1252': 0.62; 'more': 0.63; 'our': 0.64; 'binding': 0.66; 'received:176': 0.66; 'here': 0.66
Subject Re: XML Binding
To Palpandi <palpandi111@gmail.com>, python-list@python.org
References <8e17ef7d-a08d-42bf-a56c-0a886d620130@googlegroups.com>
From Burak Arslan <burak.arslan@arskom.com.tr>
X-Enigmail-Draft-Status N1110
Date Thu, 3 Sep 2015 22:54:54 +0300
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version 1.0
In-Reply-To <8e17ef7d-a08d-42bf-a56c-0a886d620130@googlegroups.com>
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.96.1441310503.8327.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441310503 news.xs4all.nl 23739 [2001:888:2000:d::a6]:46651
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95971

Show key headers only | View raw


Hello,

On 09/03/15 19:54, Palpandi wrote:
> Hi All,
>
> Is there any module available in python standard library for XML binding? If not, any other suggestions.

lxml is the right xml library to use. You can use lxml's objectify or Spyne.

Here are some examples:

http://stackoverflow.com/questions/19545067/python-joining-and-writing-xml-etrees-trees-stored-in-a-list

> Which is good for parsing large file?
> 1. XML binding
> 2. Creating our own classes

If you're dealing with huge files, I suggest using just lxml and work
with raw data. Deserializing xml objects to python classes sure is nicer
but has performance overhead that gets more and more visible as the
amount of data you deal with grows.

Best,
Burak

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


Thread

XML Binding Palpandi <palpandi111@gmail.com> - 2015-09-03 09:54 -0700
  Re: XML Binding Burak Arslan <burak.arslan@arskom.com.tr> - 2015-09-03 22:54 +0300
    Re: XML Binding Palpandi <palpandi111@gmail.com> - 2015-09-03 22:21 -0700
      Re: XML Binding Chris Angelico <rosuav@gmail.com> - 2015-09-04 15:36 +1000
      Re: XML Binding Laura Creighton <lac@openend.se> - 2015-09-04 08:46 +0200
      Re: XML Binding Laura Creighton <lac@openend.se> - 2015-09-04 08:54 +0200
  Re: XML Binding Lorenzo Sutton <lorenzofsutton@gmail.com> - 2015-09-04 10:11 +0200
  Re: XML Binding Palpandi <palpandi111@gmail.com> - 2015-09-07 06:42 -0700
    Re: XML Binding dieter <dieter@handshake.de> - 2015-09-09 10:20 +0200
    Re: XML Binding Stefan Behnel <stefan_ml@behnel.de> - 2015-09-09 11:44 +0200
    Re: XML Binding dieter <dieter@handshake.de> - 2015-09-10 08:30 +0200
  Re: XML Binding harirammanohar159@gmail.com - 2015-09-09 02:00 -0700
  Re: XML Binding Michele Simionato <michele.simionato@gmail.com> - 2015-09-10 23:47 -0700

csiph-web