On 9/1/2011 1:58 PM, JT wrote:
On Monday, August 29, 2011 1:21:48 PM UTC-5, William Gill wrote:
I have a text file with XML like records that I need to parse. By XML
like I mean records have proper opening and closing tags. but fields
don't have closing tags (they rely on line ends). Not all
On Monday, August 29, 2011 1:21:48 PM UTC-5, William Gill wrote:
>
> I have a text file with XML like records that I need to parse. By XML
> like I mean records have proper opening and closing tags. but fields
> don't have closing tags (they rely on line ends). Not all fields appear
> in all
William Gill wrote:
>
>My initial passes into Python have been very unfocused (a scatter gun of
>too many possible directions, yielding very messy results), so I'm
>asking for some suggestions, or algorithms (possibly even examples)that
>may help me focus.
>
>I'm not asking anyone to write my c
On Mon, 29 Aug 2011 23:05:23 +0200, Thomas Jollans wrote:
> A name that is often thrown around on this list for this kind of
> question is pyparsing. Now, I don't know anything about it myself, but
> it may be worth looking into.
Definitely. I did use it and even though it's not perfect - it's ver
On 29/08/11 20:21, William Gill wrote:
> I haven't done much with Python for a couple years, bouncing around
> between other languages and scripts as needs suggest, so I have some
> minor difficulty keeping Python functionality Python functionality in my
> head, but I can overcome that as the cobwe
On 8/29/2011 2:31 PM, Philip Semanchuk wrote:
If the syntax really is close to XML, would it be all that difficult to convert
it to proper XML? Then you have nice libraries like ElementTree to use for
parsing.
Possibly, but I would still need the same search algorithms to find the
opening
On Aug 29, 2011, at 2:21 PM, William Gill wrote:
> I haven't done much with Python for a couple years, bouncing around between
> other languages and scripts as needs suggest, so I have some minor difficulty
> keeping Python functionality Python functionality in my head, but I can
> overcome th
I haven't done much with Python for a couple years, bouncing around
between other languages and scripts as needs suggest, so I have some
minor difficulty keeping Python functionality Python functionality in my
head, but I can overcome that as the cobwebs clear. Though I do seem to
keep trippin