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: 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 , python-list@python.org References: <8e17ef7d-a08d-42bf-a56c-0a886d620130@googlegroups.com> From: Burak Arslan 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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