From kaklis at gmail.com Wed Oct 21 15:49:07 2009 From: kaklis at gmail.com (Antonis Kaklis) Date: Wed, 21 Oct 2009 16:49:07 +0300 Subject: [XML-SIG] Text file to XML representation Message-ID: <1ee4d1520910210649y20dfd416g9f497a017128a1b@mail.gmail.com> Hello, I would like to make a program that takes a text file with the following representation for example: outlook = sunny | humidity <= 70: yes (2.0) | humidity > 70: no (3.0) outlook = overcast: yes (4.0) outlook = rainy | windy = TRUE: no (2.0) | windy = FALSE: yes (3.0) and convert it to xml file for example: Is there a way to do it? I'm new to XML processing With Python Please help(code, tips anything) Thanks in advance Antonis From noreply at sourceforge.net Fri Oct 9 09:42:45 2009 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 09 Oct 2009 07:42:45 +0000 Subject: [XML-SIG] [ pyxml-XBEL-2875536 ] 'as' is the keyword in python2.6 Message-ID: XBEL item #2875536, was opened at 2009-10-09 15:42 Message generated for change (Tracker Item Submitted) made by sevenj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=707658&aid=2875536&group_id=6473 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: sevenj (sevenj) Assigned to: Nobody/Anonymous (nobody) Summary: 'as' is the keyword in python2.6 Initial Comment: In these files: _xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py _xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py, use the keyword 'as'. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=707658&aid=2875536&group_id=6473 From stefan_ml at behnel.de Wed Oct 21 16:18:17 2009 From: stefan_ml at behnel.de (Stefan Behnel) Date: Wed, 21 Oct 2009 16:18:17 +0200 Subject: [XML-SIG] Text file to XML representation In-Reply-To: <1ee4d1520910210649y20dfd416g9f497a017128a1b@mail.gmail.com> References: <1ee4d1520910210649y20dfd416g9f497a017128a1b@mail.gmail.com> Message-ID: <4ADF1829.2010005@behnel.de> Antonis Kaklis wrote: > I would like to make a program that takes a text file with the > following representation for example: > > outlook = sunny > | humidity <= 70: yes (2.0) > | humidity > 70: no (3.0) > outlook = overcast: yes (4.0) > outlook = rainy > | windy = TRUE: no (2.0) > | windy = FALSE: yes (3.0) > > and convert it to xml file Did you read the response that you got over at c.l.py? Stefan From nicolas at nexedi.com Wed Oct 21 18:39:44 2009 From: nicolas at nexedi.com (Nicolas Delaby) Date: Wed, 21 Oct 2009 18:39:44 +0200 Subject: [XML-SIG] Status of pyxml development Message-ID: <4ADF3950.3080901@nexedi.com> Hi all, I would like to know what is the status of pyxml ? I saw on sourceforge that it is no longer maintained but i want to have a confirmation. So i'm using a interesting module of the pyxml library: the Marshaller. I played a bit with and find some weakness like non support of namespaces. I reimplemented it with lxml (may be its a troll in this mailing-list, sorry in advance) with full support of namespaces. How can i contribute ? do i need to fork this code ? Do you have suggestions ? Regards, Nicolas *Here the output of the test with defautl behaviour:* Testing XML marshalling... 1 10633823966279326983230456482242756608 19.72 1.0 5.0 here is a string &amp; a &lt;fake tag&gt; 123 alphabetagamma 12keyvalue selfsubobjectlist11063382396627932698323045648224275660819.721.0 5.0here is a string &amp; a &lt;fake tag&gt; 1103010514608775374539735472678431spam2eggs&lt;fake tag&gt;1.0 5.0 selfsubobjectlist11063382396627932698323045648224275660819.721.0 5.0here is a string &amp; a &lt;fake tag&gt; *Here the output of the test with namespace support:* m = Marshaller(namespace_uri='http://www.erp5.org/namespaces/marshaller') dumps = m.dumps Testing XML marshalling... 1 10633823966279326983230456482242756608 19.72 1.0 5.0 here is a string &amp; a &lt;fake tag&gt; 123 alphabetagamma 12keyvalue selfsubobjectlist11063382396627932698323045648224275660819.721.0 5.0here is a string &amp; a &lt;fake tag&gt; 1103010514608775374539735472678431spam2eggs&lt;fake tag&gt;1.0 5.0 -- Nicolas Delaby Nexedi: Consulting and Development of Libre / Open Source Software http://www.nexedi.com/ From stefan_ml at behnel.de Wed Oct 21 19:31:19 2009 From: stefan_ml at behnel.de (Stefan Behnel) Date: Wed, 21 Oct 2009 19:31:19 +0200 Subject: [XML-SIG] Status of pyxml development In-Reply-To: <4ADF3950.3080901@nexedi.com> References: <4ADF3950.3080901@nexedi.com> Message-ID: <4ADF4567.6060704@behnel.de> Hi, Nicolas Delaby wrote: > I would like to know what is the status of pyxml ? I saw on sourceforge > that it is no longer maintained but i want to have a confirmation. The sourceforge site has been stating the truth for a while now. > So i'm using a interesting module of the pyxml library: the Marshaller. > I played a bit with and find some weakness like non support of namespaces. > > I reimplemented it with lxml (may be its a troll in this mailing-list, > sorry in advance) with full support of namespaces. > > How can i contribute ? do i need to fork this code ? I think the best way to have people use your code is to put it into a new package and put it up on PyPI. If it keeps up compatibility with the PyXML marshaller, the better. That will allow users of the marshaller package (however many there may be left) to easily migrate to your package. Stefan From nicolas at nexedi.com Thu Oct 22 09:32:53 2009 From: nicolas at nexedi.com (Nicolas Delaby) Date: Thu, 22 Oct 2009 09:32:53 +0200 Subject: [XML-SIG] Status of pyxml development In-Reply-To: <4ADF4567.6060704@behnel.de> References: <4ADF3950.3080901@nexedi.com> <4ADF4567.6060704@behnel.de> Message-ID: <4AE00AA5.6080902@nexedi.com> Stefan Behnel a ?crit : > Hi, > > Nicolas Delaby wrote: >> I would like to know what is the status of pyxml ? I saw on sourceforge >> that it is no longer maintained but i want to have a confirmation. > > The sourceforge site has been stating the truth for a while now. > > >> So i'm using a interesting module of the pyxml library: the Marshaller. >> I played a bit with and find some weakness like non support of namespaces. >> >> I reimplemented it with lxml (may be its a troll in this mailing-list, >> sorry in advance) with full support of namespaces. >> >> How can i contribute ? do i need to fork this code ? > > I think the best way to have people use your code is to put it into a new > package and put it up on PyPI. If it keeps up compatibility with the PyXML > marshaller, the better. That will allow users of the marshaller package > (however many there may be left) to easily migrate to your package. > Hi Stefan, Thanks for your reply, it is what i expect :) I didn't change the regular tests, so it should be still compatible with PyXML implementation. So I will publish it on PyPI and send an announcement on this mailing-list Regards, Nicolas -- Nicolas Delaby Nexedi: Consulting and Development of Libre / Open Source Software http://www.nexedi.com/ From nicolas at nexedi.com Thu Oct 22 13:03:31 2009 From: nicolas at nexedi.com (Nicolas Delaby) Date: Thu, 22 Oct 2009 13:03:31 +0200 Subject: [XML-SIG] New xml_marshaller Message-ID: <4AE03C03.8000104@nexedi.com> Hi, The generic marshal module has been published on Pypi with support of namespaces. It uses lxml as backend parser. http://pypi.python.org/pypi/xml_marshaller/0.9 source: https://svn.erp5.org/erp5/trunk/utils/xml_marshaller/ This code will be maintained by erp5 developers. Regards, Nicolas -- Nicolas Delaby Nexedi: Consulting and Development of Libre / Open Source Software http://www.nexedi.com/ From mike at skew.org Fri Oct 23 02:06:07 2009 From: mike at skew.org (Mike Brown) Date: Thu, 22 Oct 2009 18:06:07 -0600 (MDT) Subject: [XML-SIG] Status of pyxml development In-Reply-To: <4ADF4567.6060704@behnel.de> Message-ID: <200910230006.n9N067FE053369@chilled.skew.org> Stefan Behnel wrote: > Nicolas Delaby wrote: > > I would like to know what is the status of pyxml ? I saw on sourceforge > > that it is no longer maintained but i want to have a confirmation. > > The sourceforge site has been stating the truth for a while now. True, but at the moment, only the project page says that. and are the top 2 Google hits for "pyxml" and don't mention anything about it. In fact the former seems to have recently gone missing. Did I miss an announcement of its retirement? It used to look like this: I suggest restoring something (anything) to to say what the PyXML project is, that it's no longer maintained, and to link to the other sites, if not also to say that a new maintainer would be welcomed despite the declining usefulness of the package. I also suggest putting a "PyXML is no longer maintained" on the old topics subpage. Mike