Stanley A. Klein | 3 Oct 2008 22:05

Is anyone in the Python XML community implementing EXI?

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

_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Stefan Behnel | 10 Oct 2008 22:12
Picon
Favicon

Re: Choosing an XML method for a backing store

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
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

amit sethi | 22 Oct 2008 04:20
Picon

incremental parser


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
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig
Stefan Behnel | 22 Oct 2008 08:08
Picon
Favicon

Re: incremental parser

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

_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Ralph Siemsen | 28 Oct 2008 22:45

Trouble building PyXML-0.8.4

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 "<string>", line 1, in <module>
  File "setup.py", line 244, in <module>
    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
_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Shola Onoriemu | 21 Oct 2008 14:47
Picon
Favicon

SETTING UP PYXML

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

_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig
r k | 16 Oct 2008 21:09
Picon
Favicon

can't install pyxml on windows vista

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


_______________________________________________
XML-SIG maillist  -  XML-SIG <at> python.org
http://mail.python.org/mailman/listinfo/xml-sig

Gmane