[issue462710] Python 2.2a3/XML leaks memory

2022-04-10 Thread admin
Change by admin : -- github: None -> 35197 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

First release of python-escpos-xml

2016-03-01 Thread Cédric Krier
I'm pleased to announce the initial release of python-escpos-xml [1]. escpos-xml is a library to parse XML defined receipt and print it on ESC/POS Printer using python-escpos [2] library. The XML syntax is quite similar to HTML and it can be generated by template engines. [1] https

python and xml

2012-05-16 Thread Nibin V M
Hi, I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to manipulate the data here. For eg: How can I read the CPU load data from the below output loadavgone0.00/onefive0.00/fivefifteen0.00/fifteen/loadavg!-- whostmgrd -- Thank you, --

Re: python and xml

2012-05-16 Thread Stefan Behnel
Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to manipulate the data here. For eg: How can I read the CPU load data from the below output

Re: python and xml

2012-05-16 Thread Nibin V M
thank you Stefan. but the XML output is assigned to a variable; how to process the variable with XML contents? On Wed, May 16, 2012 at 7:53 PM, Stefan Behnel stefan...@behnel.de wrote: Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML

Re: python and xml

2012-05-16 Thread Stefan Behnel
Hi, please don't top-post (I fixed the citation order below). Nibin V M, 16.05.2012 16:30: On Wed, May 16, 2012 at 7:53 PM, Stefan Behnel wrote: Nibin V M, 16.05.2012 16:16: I am trying to use cPanel XML-API and every API call return data in XML format. I would like to know how to

Re: Python 3 - xml - crlf handling problem

2011-12-02 Thread durumdara
field's value). My case is that the processor application (for whom I pass the XML from Python) is sensitive to plus CRLF-s in text nodes, I must do something these plus items to avoid external's program errors. I got these templates and input files from prettied format (with CRLFS), but I must eat them

Re: Python 3 - xml - crlf handling problem

2011-12-02 Thread Stefan Behnel
(for example a memo field's value). My case is that the processor application (for whom I pass the XML from Python) is sensitive to plus CRLF-s in text nodes, I must do something these plus items to avoid external's program errors. I got these templates and input files from prettied format

Python 3 - xml - crlf handling problem

2011-11-30 Thread durumdara
Hi! As I see that XML parsing is wrong in Python. I must use predefined XML files, parsing them, extending them, and produce some result. But as I see that in Windows this is working wrong. When the predefined XMLs are formatted (prettied) with CRLFs, then the parser keeps these plus LF

Re: Python 3 - xml - crlf handling problem

2011-11-30 Thread Stefan Behnel
durumdara, 30.11.2011 13:08: As I see that XML parsing is wrong in Python. You didn't say what you are using for parsing, but from your example, it appears likely that you are using the xml.dom.minidom module. I must use predefined XML files, parsing them, extending them, and produce some

Python script xml-rpc to C# xml-rpc script

2011-03-15 Thread Ymtrader
If anyone is fluent in python as well as C# using the cook computing xml-rpc.net library I could really use some help. I have been trying to write a C# program to access upcdatabase.com without much luck. I have a working python script. Would anyone be willing to show me the C# equivalent to

Re: Python script xml-rpc to C# xml-rpc script

2011-03-15 Thread Adam Tauno Williams
On Tue, 2011-03-15 at 08:00 -0700, Ymtrader wrote: If anyone is fluent in python as well as C# using the cook computing xml-rpc.net library I could really use some help. I have been trying to write a C# program to access upcdatabase.com without much luck. Yes, I've used both. have a

Re: Python parsing XML file problem with SAX

2010-08-24 Thread Aahz
In article mailman.1895.1281422126.1673.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: Christian Heimes, 10.08.2010 01:39: Am 10.08.2010 01:20, schrieb Aahz: The docs say, Parses an XML section into an element tree incrementally. Sure sounds like it retains the entire parsed

Re: Python parsing XML file problem with SAX

2010-08-10 Thread Stefan Behnel
Christian Heimes, 10.08.2010 01:39: Am 10.08.2010 01:20, schrieb Aahz: The docs say, Parses an XML section into an element tree incrementally. Sure sounds like it retains the entire parsed tree in RAM. Not good. Again, how do you parse an XML file larger than your available memory using

Re: Python parsing XML file problem with SAX

2010-08-09 Thread Aahz
In article mailman.1250.1280314148.1673.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: First of all: don't use SAX. Use ElementTree's iterparse() function. That will shrink you code down to a simple loop in a few lines. Unless I'm missing something, that only helps if the

Re: Python parsing XML file problem with SAX

2010-08-09 Thread Stefan Behnel
Aahz, 09.08.2010 18:52: In articlemailman.1250.1280314148.1673.python-l...@python.org, Stefan Behnel wrote: First of all: don't use SAX. Use ElementTree's iterparse() function. That will shrink you code down to a simple loop in a few lines. Unless I'm missing something, that only helps if

Re: Python parsing XML file problem with SAX

2010-08-09 Thread Aahz
In article mailman.1860.1281375095.1673.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: Aahz, 09.08.2010 18:52: In articlemailman.1250.1280314148.1673.python-l...@python.org, Stefan Behnel wrote: First of all: don't use SAX. Use ElementTree's iterparse() function. That will

Re: Python parsing XML file problem with SAX

2010-08-09 Thread Christian Heimes
Am 10.08.2010 01:20, schrieb Aahz: The docs say, Parses an XML section into an element tree incrementally. Sure sounds like it retains the entire parsed tree in RAM. Not good. Again, how do you parse an XML file larger than your available memory using something other than SAX? The document

Python parsing XML file problem with SAX

2010-07-28 Thread jia li
I have an XML file with hundreds of error elements. What's strange is only one of there elements could not be parsed correctly: error checkerREVERSE_INULL/checker functionDispose_ParameterList/function unmangled_functionDispose_ParameterList/unmangled_function statusUNINSPECTED/status num146/num

Re: Python parsing XML file problem with SAX

2010-07-28 Thread Stefan Behnel
jia li, 28.07.2010 12:10: I have an XML file with hundreds oferror elements. What's strange is only one of there elements could not be parsed correctly: error checkerREVERSE_INULL/checker functionDispose_ParameterList/function unmangled_functionDispose_ParameterList/unmangled_function

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Chris Rebert
On Sat, Apr 10, 2010 at 9:13 PM, Ted Larson Freeman free...@alumni.stanford.org wrote: This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: The asset-level information would be provided according to proposed standards and in a tagged

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Patrick Maupin
On Apr 10, 11:13 pm, Ted Larson Freeman free...@alumni.stanford.org wrote: This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: The asset-level information would be provided according to proposed standards and in a tagged data format

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Cameron Simpson
On 10Apr2010 23:05, Chris Rebert c...@rebertia.com wrote: | On Sat, Apr 10, 2010 at 9:13 PM, Ted Larson Freeman | free...@alumni.stanford.org wrote: | This week the SEC proposed new requirements for asset-backed | securities that include the use of XML and Python: | | The asset-level

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Terry Reedy
On 4/11/2010 12:13 AM, Ted Larson Freeman wrote: This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: The asset-level information would be provided according to proposed standards and in a tagged data format using eXtensible Markup

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Patrick Maupin
that include the use of XML and Python: | | The asset-level information would be provided according to proposed | standards and in a tagged data format using eXtensible Markup Language | (XML). In addition, we are proposing to require, along with the | prospectus filing, the filing of a computer

SEC proposes the use of Python and XML

2010-04-10 Thread Ted Larson Freeman
This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: The asset-level information would be provided according to proposed standards and in a tagged data format using eXtensible Markup Language (XML). In addition, we are proposing

Re: Python and XML Help

2009-04-17 Thread ookrin
On Apr 15, 9:43 am, Scott David Daniels scott.dani...@acm.org wrote: ookrin wrote: I am still learning. And it's not that I won't take the advice for using ElementTree, I just currently don't know anything about it. I just didn't want to say, I have no idea what you're talking about!

Re: Python and XML Help

2009-04-15 Thread John Machin
On Apr 15, 2:25 pm, ookrin ook...@gmail.com wrote: Seeing the errors - I changed the two classes to this: class offlineLoad():     def loadXmlFile(self):         print Loading from File         xf = open('CharacterID.xml','r')         xml = xmlHandler()         saxparser = make_parser()

Re: Python and XML Help

2009-04-15 Thread Scott David Daniels
ookrin wrote: I am still learning. And it's not that I won't take the advice for using ElementTree, I just currently don't know anything about it. I just didn't want to say, I have no idea what you're talking about! to Scott cause I figured that would be rude, but I guess so is not saying

Re: Python and XML Help

2009-04-14 Thread ookrin
On Apr 12, 12:51 am, Diez B. Roggisch de...@nospam.web.de wrote: ookrin schrieb: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the

Re: Python and XML Help

2009-04-14 Thread John Machin
On Apr 15, 12:29 pm, ookrin ook...@gmail.com wrote: On Apr 12, 12:51 am, Diez B. Roggisch de...@nospam.web.de wrote: ookrin schrieb: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use

Re: Python and XML Help

2009-04-14 Thread ookrin
On Apr 14, 8:15 pm, John Machin sjmac...@lexicon.net wrote: On Apr 15, 12:29 pm, ookrin ook...@gmail.com wrote: On Apr 12, 12:51 am, Diez B. Roggisch de...@nospam.web.de wrote: ookrin schrieb: I'm in the process of learning python and PyQt4. I had decided to make myself a simple

Re: Python and XML Help

2009-04-13 Thread Scott David Daniels
ookrin wrote: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of

Re: Python and XML Help

2009-04-12 Thread Diez B. Roggisch
ookrin schrieb: I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of

Python and XML Help

2009-04-11 Thread ookrin
I'm in the process of learning python and PyQt4. I had decided to make myself a simple app and soon discovered that I needed to crash into xml to use some of the data I was going to be getting off of the server. I picked up enough xml to use the sax parser to get the data out of the xml. I can

A question about python and xml

2008-05-09 Thread Holden
to export the data using xml. So say if a user logged in they would be able to store there basic information in an xml file and download it whenever. Is that possible using XML and Python. I am sorry if this post doesn't make much sense but any advice would be greatly appreciated. You can also e-mail

Re: A question about python and xml

2008-05-09 Thread Stefan Behnel
in they would be able to store there basic information in an xml file and download it whenever. Is that possible using XML and Python. I am sorry if this post doesn't make much sense but any advice would be greatly appreciated. You can also e-mail me if you need further information or clarification

Re: A question about python and xml

2008-05-09 Thread J. Cliff Dyer
wanted to use mysql to store the data but I want to export the data using xml. So say if a user logged in they would be able to store there basic information in an xml file and download it whenever. Is that possible using XML and Python. I am sorry if this post doesn't make much sense but any

Python and xml

2008-03-29 Thread Doran, Harold
this document and output a .txt document or .csv document that organizes the results into human-readable rows and columns in a nicely formatted manner. As I read online docs about xml and python, it seems the topic is very big. While I am more than happy to invest significant time learning

Re: Python and xml

2008-03-29 Thread Konstantin Veretennicov
On Sat, Mar 29, 2008 at 3:57 PM, Doran, Harold [EMAIL PROTECTED] wrote: I am a python neophyte who has used python to parse through text files using basic functions and no OOP experience. I have a need to process some xml files and from what I am now reading python is the exact tool I need to

Re: Python - CGI - XML - XSD

2008-03-13 Thread Diez B. Roggisch
Sorry, it was really late when i wrote this post. The file is an XSL file. It defines HTML depending on what appears in the XML document. Then the content-type might be the culprit, yes. But testing so would have been faster than waiting for answers here... Diez --

Re: Python - CGI - XML - XSD

2008-03-12 Thread Diez B. Roggisch
xkenneth wrote: Hi All, Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi script, and tell it print out all of the same XML, also served up by apache2, the

Re: Python - CGI - XML - XSD

2008-03-12 Thread xkenneth
On Mar 12, 6:32 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi All,    Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi script, and

Re: Python - CGI - XML - XSD

2008-03-12 Thread Stefan Behnel
xkenneth wrote: On Mar 12, 6:32 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi All, Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi

Re: Python - CGI - XML - XSD

2008-03-12 Thread xkenneth
On Mar 12, 11:58 am, Stefan Behnel [EMAIL PROTECTED] wrote: xkenneth wrote: On Mar 12, 6:32 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi All,    Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML

Python - CGI - XML - XSD

2008-03-11 Thread xkenneth
Hi All, Quick question. I've got an XML schema file (XSD) that I've written, that works fine when my data is present as an XML file. (Served out by apache2.) Now when I call python as a cgi script, and tell it print out all of the same XML, also served up by apache2, the XSD is not applied.

Re: Python object - XML

2007-09-04 Thread Stefan Behnel
Samuel wrote: Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of) Python

Python object - XML

2007-09-03 Thread Samuel
Hi, Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of) Python object(s), manipulate the

Re: Python object - XML

2007-09-03 Thread Jarek Zgoda
Samuel napisał(a): Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of)

Re: Python object - XML

2007-09-03 Thread Samuel
On Sep 3, 10:19 pm, Jarek Zgoda [EMAIL PROTECTED] wrote: Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of) Python object(s), manipulate the instance, and save the result back to XML? Yea, use ElementTree and you'd get a bunch of nested lists of

Re: Python object - XML

2007-09-03 Thread Laurent Pointal
Samuel wrote: Hi, Say you have the following XML: item ref=1 nameitem 1/name /item item ref=2 nameitem 2/name /item group item ref=1 / item ref=2 / namemy group/name /group Is there an easy way (i.e. without writing a sax/dom parser) to load this into a (number of)

Re: Python and XML?

2007-04-21 Thread Leonard J. Reder
Stefan, This package is looking better I tried the validation example, but it did not work with 1.3beta so I grabbed 1.2. If objectify works well I think this is a great pick for anyone using xml. Please post to me and the python announce when 1.3 is released. thanks, Len Stefan Behnel wrote:

Re: Python and XML?

2007-04-19 Thread Stefan Behnel
Hi, Leonard J. Reder wrote: Stefan Behnel wrote: http://codespeak.net/lxml/objectify.html Looks like this stuff might do what I want. Need to work through the example. Are you the author? Yup! :) Why is this better then using gnossis? lxml is faster and supports more XML standards.

Re: Python and XML?

2007-04-15 Thread Stefan Behnel
Leonard J. Reder wrote: What I as really after though was other possible solutions like JAX in the Java world or Gnosis in the Python world. Something that can take a Relax NG Schema and compile it into a bunch of parser/generator objects for handling an XML format. That's why I was asking

Re: Python and XML?

2007-04-15 Thread Leonard J. Reder
Stefan Behnel wrote: Leonard J. Reder wrote: What I as really after though was other possible solutions like JAX in the Java world or Gnosis in the Python world. Something that can take a Relax NG Schema and compile it into a bunch of parser/generator objects for handling an XML format.

Re: Python and XML?

2007-04-14 Thread Stefan Behnel
Leonard J. Reder wrote: What is the best way to process a Relax NG Schema and auto generate XML Python parser/generator code? Any suggestions? Not sure what you mean with XML Python parser/generator code, but regarding RNG, you should definitely give lxml a try. It may already be what you were

Re: Python and XML?

2007-04-14 Thread Leonard J. Reder
format. Guess I am going to just have try out Gnosis since it seems like the only game in town. Len Stefan Behnel wrote: Leonard J. Reder wrote: What is the best way to process a Relax NG Schema and auto generate XML Python parser/generator code? Any suggestions? Not sure what you mean

Python and XML?

2007-04-13 Thread Leonard J. Reder
Hello, What is the best way to process a Relax NG Schema and auto generate XML Python parser/generator code? Any suggestions? Thanks for all replies, Len -- === Leonard J. Reder Home office email : [EMAIL PROTECTED] Lab email : [EMAIL PROTECTED] Lab web

ANN: Python and XML talk in Omaha

2006-08-29 Thread Mike Hostetler
On Sept 5, I will be giving a presentation on Python and XML for the Omaha Dynamic Users Group. The goal of the Dynamic Users Group is to learn from and about dynamic languages, (Perl, Ruby, Smalltalk as well as Python). Most of the audience will not be Python users. However, my talk

Python and XML Schema

2006-01-25 Thread Trond
I have a need to, given a XML document with XML Schema defined, to get the type of each element in the XML file based on the XML Schema URI given. IE, the title element is of simple datatype string. Is there any existing Python libraries were I can parse the XML file, and for a given node ask

Re: Python and XML Schema

2006-01-25 Thread Dennis Benzinger
Trond wrote: I have a need to, given a XML document with XML Schema defined, to get the type of each element in the XML file based on the XML Schema URI given. IE, the title element is of simple datatype string. Is there any existing Python libraries were I can parse the XML file, and for a