Re: tuples within tuples

2007-10-26 Thread korovev76
On 26 Ott, 23:33, Stargaming <[EMAIL PROTECTED]> wrote: > He certainly is -- *you* are misreading *him*. The nit he's picking is > the non-terminated string (quotation mark/apostrophe missing). > right, now i got it! beside this, i'm trying to use the reduceXML function proposed by Larry.. but I

Re: tuples within tuples

2007-10-26 Thread korovev76
On 26 Ott, 19:23, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > (A,B,C,D) > > that could be > > ('tagA', None, [('tagB', None, ['bobloblaw], None)], None) > > "C" isn't a tuple in your example either. It is a one-element list > (the single element INSIDE the list is a tuple whose third

Re: tuples within tuples

2007-10-26 Thread korovev76
> Resolve *what*? The problem isn't clear yet; at least to me. Above you > say what you get. What exactly do you want? Examples please. > Sorry for my poor english, but I meant: how can I obtain a list of A and C starting from something like this? (A,B,C,D) that could be ('tagA', None, [('t

Re: tuples within tuples

2007-10-26 Thread korovev76
[cut] > > Without a better example or explanation of what you are trying to do it is > difficult You're right. Actually i'm parsing an xml file using pyrxp, which returns something like this: (tagName, attributes, list_of_children, spare) Where list_of_children might "be a list with elements that

tuples within tuples

2007-10-26 Thread korovev76
Hello everybody. I'm wondering how to iterate over a tuple like this [A,B,C,D] while saving A and C in a list. My problem is that C sometimes is a tuple of the same structure itself... thanks! korovev -- http://mail.python.org/mailman/listinfo/python-list

Re: I MEANT ONIX.... [it was Re: ONYX]

2007-09-20 Thread korovev76
On 20 Set, 14:29, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > lxml is a validating parser for python. > > Diez thank u, i'll take a look -- http://mail.python.org/mailman/listinfo/python-list

Re: I MEANT ONIX.... [it was Re: ONYX]

2007-09-20 Thread korovev76
On 20 Set, 12:55, Bruno Desthuilliers wrote: > > First question : do you *really* need a validating parser ? > that's what they told me ("they" being "da boss")... I mean: i have to validate and to parse... i guess you can't do it at the same time, can you? > Second question : did you try to go

I MEANT ONIX.... [it was Re: ONYX]

2007-09-20 Thread korovev76
i'm such a lame... i meant onix... not onyx... http://xml.coverpages.org/onix.html the questions remain the same ones... thanx On 20 Set, 12:01, [EMAIL PROTECTED] wrote: > On 19 Set, 21:02, Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > > > I don't know what's "onyx-style" xml, > > i'm n

Re: ONYX

2007-09-20 Thread korovev76
On 19 Set, 21:02, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > I don't know what's "onyx-style" xml, i'm not used to xml, so for me onyx is just a mess... http://www.onyx.com/Products/xml.asp > but if it's xml, any xml parser > will parse it, and any validating parser should be able to val

ONYX

2007-09-19 Thread korovev76
Hi everybody! Is there anything out there that can validate and parse some "onyx-style" xml? I searched the web, but coulnd't find nothing really interesting about it... thank you! korovev -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing a dbIII file

2007-08-08 Thread korovev76
On 7 Ago, 17:47, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have to parse a file (that is a dbIII file) whose stucture look like > > this: > > |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | > > other string| > >

Re: parsing a dbIII file

2007-08-07 Thread korovev76
On 7 Ago, 09:21, Steve Holden <[EMAIL PROTECTED]> wrote: > That's not a standard dBaseIII data file though, correct? It looks more > like something that was produced *from* a dBaseIII file. yeap... unfortunately it is not... > Good luck with your escape from COBOL! i'm not escaping by now... A

parsing a dbIII file

2007-08-07 Thread korovev76
Hello everybody, I'm new to python (...I work with cobol...) I have to parse a file (that is a dbIII file) whose stucture look like this: |string|, |string|, |string that may contain commas inside|, 1, 2, 3, | other string| Is there anything in python that parses this stuff? thanks a lot korove