Re: Simple XML-to-Python conversion

2005-03-22 Thread Uche Ogbuji
On Fri, 2005-03-18 at 11:04 -0800, [EMAIL PROTECTED] wrote: > Since I've exhausted every option except for Amara, I've decided to > give it a try. However, this will only work if I can compile Amara and > 4suite along with my application. I doubt 4suite will be able to be > compiled, but I'll try

Re: Simple XML-to-Python conversion

2005-03-22 Thread Uche Ogbuji
On Sat, 2005-03-19 at 15:38 -0800, [EMAIL PROTECTED] wrote: > Thanks Lutz! > > I should have looked into Amara's binderytools module earlier. This is > just the type of tool I was looking for. When I tried testing its > compatibility with py2exe, I was _almost_ able to compile... Does > anyone

Re: Simple XML-to-Python conversion

2005-03-19 Thread [EMAIL PROTECTED]
Thanks Lutz! I should have looked into Amara's binderytools module earlier. This is just the type of tool I was looking for. When I tried testing its compatibility with py2exe, I was _almost_ able to compile... Does anyone know where the following libraries exist? I thought Amara would have th

Re: Simple XML-to-Python conversion

2005-03-19 Thread [EMAIL PROTECTED]
One reason I chose not to use ConfigParser module is that I also have a similar config file for a MATLAB compiled program to run along with my Python script. XML would eliminate the need to use two different style configuration files. Another reason is that the programmer who is writing the GUI t

Re: Simple XML-to-Python conversion

2005-03-19 Thread Ivan Voras
[EMAIL PROTECTED] wrote: I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing something similar. I too needed such thing, and made this simple parser: http://ivora

Re: Simple XML-to-Python conversion

2005-03-19 Thread Diez B. Roggisch
> If I used a simple INI file or CSV file, I would simply have to parse > my file once and match the name with the value. Why is it necessary to > parse a document once and then re-parse your information into a format > that you can use. This seems absurd to me. Any thoughts on this? Do > I eve

Re: Simple XML-to-Python conversion

2005-03-19 Thread Kent Johnson
[EMAIL PROTECTED] wrote: I've tried xmltramp and element tree, but these tools aren't what I had in mind. What I'm looking to use are basic structures such as: root.path root.input.method root.input.filename root.output.filename I haven't used xmltramp but it seems to allow this style of access.

Re: Simple XML-to-Python conversion

2005-03-18 Thread Swaroop C H
On 18 Mar 2005 20:24:56 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >From what I understand, this is how XML was standardized, in a sort of > hierarchical structure of infinite possibilities. The problem I'm > having with these structures is that I need to actively search through > each

Re: Simple XML-to-Python conversion

2005-03-18 Thread [EMAIL PROTECTED]
I've tried xmltramp and element tree, but these tools aren't what I had in mind. I've come to the realization that it's not the tools that are lacking. In fact, I'm a big fan of ElementTree now, but would only use it for large parsing tasks. Instead, I think the problem is either inherent in the

Re: Simple XML-to-Python conversion

2005-03-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Since I've exhausted every option except for Amara, I've decided to > give it a try. why didn't xmltramp or elementtree work for your application? they're used all over the place, in all sorts of applications, so it would be interesting to know what's so special about

Re: Simple XML-to-Python conversion

2005-03-18 Thread [EMAIL PROTECTED]
Since I've exhausted every option except for Amara, I've decided to give it a try. However, this will only work if I can compile Amara and 4suite along with my application. I doubt 4suite will be able to be compiled, but I'll try it anyway. If I weren't set on using XML (I know, not every applic

Re: Simple XML-to-Python conversion

2005-03-17 Thread news.sydney.pipenetworks.com
Lutz Horn wrote: [EMAIL PROTECTED] schrieb: I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. Take a look at Amara (http://uche.ogbuji.net/tech/4Suite/amara/). Lutz Amara rules xml to python conversions. I've used it successfully

Re: Simple XML-to-Python conversion

2005-03-17 Thread Premshree Pillai
On Thu, 17 Mar 2005 12:39:42 +0100, Lutz Horn <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > I've been searching high and low for a way to simply convert a small > > XML configuration file to Python data structures. If using XML is not absolutely essential, you might want to take a lo

Re: Simple XML-to-Python conversion

2005-03-17 Thread Fredrik Lundh
"[EMAIL PROTECTED]" wrote: > I've been searching high and low for a way to simply convert a small > XML configuration file to Python data structures. I came across gnosis > XML tools, but need a built-in option for doing something similar. > > My knowledge of DOM and anything beyond simple XML st

Re: Simple XML-to-Python conversion

2005-03-17 Thread Thomas Guettler
Am Wed, 16 Mar 2005 14:19:49 -0800 schrieb [EMAIL PROTECTED]: > I've been searching high and low for a way to simply convert a small > XML configuration file to Python data structures. I came across gnosis > XML tools, but need a built-in option for doing something similar. > > My knowledge of D

Re: Simple XML-to-Python conversion

2005-03-17 Thread [EMAIL PROTECTED]
A good question... Here's a followup question: Does third-party software compile as well as the built-in modules when using distutils and the py2exe extension module? -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple XML-to-Python conversion

2005-03-17 Thread Tim Jarman
[EMAIL PROTECTED] wrote: > Amara does indeed make it effortless to transform an XML document into > a Python structure. Unfortunately this suggestion requires the 3rd > party software, Amara, _and_ a 4Suite installation according to the > website. > > The reason I can't expect users to have 3rd

Re: Simple XML-to-Python conversion

2005-03-17 Thread [EMAIL PROTECTED]
Amara does indeed make it effortless to transform an XML document into a Python structure. Unfortunately this suggestion requires the 3rd party software, Amara, _and_ a 4Suite installation according to the website. The reason I can't expect users to have 3rd party tools is because this tool will

Re: Simple XML-to-Python conversion

2005-03-17 Thread Lutz Horn
[EMAIL PROTECTED] schrieb: I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. Take a look at Amara (http://uche.ogbuji.net/tech/4Suite/amara/). Lutz -- pub 1024D/6EBDA359 1999-09-20 Lutz Horn <[EMAIL PROTECTED]> Key fingerprint =

Simple XML-to-Python conversion

2005-03-16 Thread [EMAIL PROTECTED]
I've been searching high and low for a way to simply convert a small XML configuration file to Python data structures. I came across gnosis XML tools, but need a built-in option for doing something similar. My knowledge of DOM and anything beyond simple XML structures is rudimentary at best. Is