From sklein at cpcug.org Fri Oct 3 22:05:11 2008 From: sklein at cpcug.org (Stanley A. Klein) Date: Fri, 3 Oct 2008 16:05:11 -0400 (EDT) Subject: [XML-SIG] Is anyone in the Python XML community implementing EXI? Message-ID: <14325.207.188.248.157.1223064311.squirrel@www.cpcug.org> The W3C has a Last Call draft issued for Efficient XML Interchange (EXI). The draft can be found at http://www.w3.org/TR/exi/ EXI is a smart compression method for XML that has aspects similar to gzip compression if there is no prior information but also uses prior information such as the schema, if available. It is based on existing technology, made available royalty-free to W3C, for sending web pages to cell phones. Is anyone in the Python XML community working on implementing this? (There is an initial Java implementation available at http://exificient.sourceforge.net/) Thanks. Stan Klein From stefan_ml at behnel.de Fri Oct 10 22:12:25 2008 From: stefan_ml at behnel.de (Stefan Behnel) Date: Fri, 10 Oct 2008 22:12:25 +0200 Subject: [XML-SIG] Choosing an XML method for a backing store In-Reply-To: References: Message-ID: <48EFB729.5000207@behnel.de> Hi, regarding this point: Darren Hart wrote: > 4) Is it common practice to subclass the DOM objects into something my > application can use explicitly, thus avoiding the need to convert from > the DOM to the structure outlined above? My objects currently use > signals to communication with the GUI and other objects. Take a look at a presentation I gave on lxml at EuroPython this year: http://codespeak.net/lxml/s5/lxml-ep2008.html Stefan From amit.pureenergy at gmail.com Wed Oct 22 04:20:25 2008 From: amit.pureenergy at gmail.com (amit sethi) Date: Wed, 22 Oct 2008 07:50:25 +0530 Subject: [XML-SIG] incremental parser Message-ID: hi , I am new to python as well as xml . I am trying to make a program which reads an xml document reads the attributes of an element and makes a decision as to whether it wants to keep it the new xml file that is being created at the same time . Is xml.sax.xmlreader.IncrementalParser good for this . Can anybody give me an example as to how to use Incremental parser. A-M-I-T S|S -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan_ml at behnel.de Wed Oct 22 08:08:57 2008 From: stefan_ml at behnel.de (Stefan Behnel) Date: Wed, 22 Oct 2008 08:08:57 +0200 (CEST) Subject: [XML-SIG] incremental parser In-Reply-To: References: Message-ID: <34739.213.61.181.86.1224655737.squirrel@groupware.dvs.informatik.tu-darmstadt.de> amit sethi wrote: > hi , I am new to python as well as xml . I am trying to make a program > which > reads an xml document reads the attributes of an element and makes a > decision as to whether it wants to keep it the new xml file that is being > created at the same time . Is xml.sax.xmlreader.IncrementalParser good for > this . Can anybody give me an example as to how to use Incremental parser. I think what you are looking for is ElementTree's iterparse() function. http://docs.python.org/library/xml.etree.elementtree.html#functions http://effbot.org/zone/element-iterparse.htm Note that this will build a tree (very fast, BTW) and will let you interact with each element it touches. Once you're done, just serialise the resulting tree. Stefan From ralphs at netwinder.org Tue Oct 28 22:45:18 2008 From: ralphs at netwinder.org (Ralph Siemsen) Date: Tue, 28 Oct 2008 17:45:18 -0400 Subject: [XML-SIG] Trouble building PyXML-0.8.4 Message-ID: <20081028214518.GA3475@harvey.netwinder.org> I'm trying to build PyXML-0.8.4 from source, against python-2.5.1 using gcc-4.3.1 on ARM platform. The build fails as shown below... I am not sure exactly what the error means, or how to go about fixing it. Any pointers would be appreciated. byte-compiling /home/build/rpmbuild/BUILDROOT/PyXML-0.8.4-10.arm/usr/lib/python2.5/site-packages/_xmlplus/xpath/XPathParser.py to XPathParser.pyc byte-compiling /home/build/rpmbuild/BUILDROOT/PyXML-0.8.4-10.arm/usr/lib/python2.5/site-packages/_xmlplus/xpath/XPathParserBase.py to XPathParserBase.pyc byte-compiling /home/build/rpmbuild/BUILDROOT/PyXML-0.8.4-10.arm/usr/lib/python2.5/site-packages/_xmlplus/xpath/__init__.py to __init__.pyc Traceback (most recent call last): File "", line 1, in File "setup.py", line 244, in scripts = ['scripts/xmlproc_parse', 'scripts/xmlproc_val'] File "/usr/lib/python2.5/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands self.run_command(cmd) File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/usr/lib/python2.5/site-packages/setuptools/command/install.py", line 56, in run return _install.run(self) File "/usr/lib/python2.5/distutils/command/install.py", line 510, in run self.run_command(cmd_name) File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/usr/lib/python2.5/site-packages/setuptools/command/install_lib.py", line 24, in run self.byte_compile(outfiles) File "/usr/lib/python2.5/distutils/command/install_lib.py", line 135, in byte_compile dry_run=self.dry_run) File "/usr/lib/python2.5/distutils/util.py", line 499, in byte_compile compile(file, cfile, dfile) File "/usr/lib/python2.5/py_compile.py", line 138, in compile marshal.dump(codeobject, fc) ValueError: unmarshallable object I have built a number of other python modules sucessfully (well, no complaints during compilation anyways). For reference, the same build on x86 platform, http://kojipkgs.fedoraproject.org/packages/PyXML/0.8.4/10/data/logs/i386/build.log Thanks, -Ralph From py_shola at yahoo.com Tue Oct 21 14:53:55 2008 From: py_shola at yahoo.com (Shola Onoriemu) Date: Tue, 21 Oct 2008 12:53:55 -0000 Subject: [XML-SIG] SETTING UP PYXML Message-ID: <36824.99179.qm@web46112.mail.sp1.yahoo.com> Hello, Please i can't install PyXml on my system...cos i dont have Visual Studio 2003 ...please how do i use the CYGWIN-mingw -------------- next part -------------- An HTML attachment was scrubbed... URL: From rkanita at hotmail.com Thu Oct 16 21:14:22 2008 From: rkanita at hotmail.com (r k) Date: Thu, 16 Oct 2008 19:14:22 -0000 Subject: [XML-SIG] can't install pyxml on windows vista Message-ID: Hi, Is anyone having issues with installing pyxml on Windows Vista SP1? This is the error I get: --------------------------- PyXML-0.8.4.win32-py2.4.exe - Unable To Locate Component --------------------------- This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem. --------------------------- OK --------------------------- Is there a sol'n? Thanks in advance, kr _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: