Re: Using XML w/ Python...

2005-12-12 Thread Jay
ok, thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread uche . ogbuji
Rick, thanks. Based on your clue I checked, and it seems those Amara packages are not being built rightly. I'll look to get those packages fixed and updated tomorrow. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.nethttp://fourthought.com h

Re: Using XML w/ Python...

2005-12-12 Thread Jay
come on guys, the post isnt dead yet -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread Jay
Suggestions maybe? -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread Jay
you might be on to something >>> from amara import domtools >>> print domtools.__file__ C:\Python23\lib\site-packages\amara\domtools.pyc >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-12 Thread uche . ogbuji
""" But anyway, i get this... >>> import amara >>>from amara import domtools >>> print domtools.py Traceback (most recent call last): File "", line 1, in ? NameError: name 'domtools' is not defined """ Sheesh! That right after waking up. And it shows :-) Should have been "print domtools.__fi

Re: Using XML w/ Python...

2005-12-12 Thread Jay
Umm, yea, u definatly hijacked my thread. If you didnt mean to then dont But anyway, i get this... >>> import amara >>>from amara import domtools >>> print domtools.py Traceback (most recent call last): File "", line 1, in ? NameError: name 'domtools' is not defined >>> suggestions? -- h

Re: Using XML w/ Python...

2005-12-12 Thread Rick Wotnaz
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > """ > Not wanting to hijack this thread, but it got me interested in > installing amara. I downloaded > Amara-allinone-1.0.win32-py2.4.exe and ran it. It professed that > the installation directory was to be > D:\Python24\Lib\site-packages\ ..

Re: Using XML w/ Python...

2005-12-12 Thread uche . ogbuji
""" Not wanting to hijack this thread, but it got me interested in installing amara. I downloaded Amara-allinone-1.0.win32-py2.4.exe and ran it. It professed that the installation directory was to be D:\Python24\Lib\site-packages\ ... but it placed FT and amara in D: \Python24\Python24\Lib\site-pac

Re: Using XML w/ Python...

2005-12-12 Thread Rick Wotnaz
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: > """ > Spoke too soon, i get this error when running amara in > ActivePython > import amara amara.parse("http://www.digg.com/rss/index.xml";) > > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python23\Lib

Re: Using XML w/ Python...

2005-12-12 Thread uche . ogbuji
""" >>> import amara >>> print dir(amara) ['__builtins__', '__doc__', '__file__', '__name__', '__path__', '__version__', 'binderytools', 'os', 'parse'] """ So it's not able to load domtools. What do you get trying from amara import domtools print domtools.py -- Uche Ogbuji

Re: Using XML w/ Python...

2005-12-12 Thread Jay
when putting excactly what you got, i got >>> python -c "import amara; print dir(amara)" Traceback ( File "", line 1 python -c "import amara; print dir(amara)" ^ SyntaxError: invalid syntax when doing it seperately, i got> >>> import amara >>> pri

Re: Using XML w/ Python...

2005-12-11 Thread uche . ogbuji
""" Spoke too soon, i get this error when running amara in ActivePython >>> import amara >>> amara.parse("http://www.digg.com/rss/index.xml";) Traceback (most recent call last): File "", line 1, in ? File "C:\Python23\Lib\site-packages\amara\__init__.py", line 50, in parse if IsXml(source

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Spoke too soon, i get this error when running amara in ActivePython >>> import amara >>> amara.parse("http://www.digg.com/rss/index.xml";) Traceback (most recent call last): File "", line 1, in ? File "C:\Python23\Lib\site-packages\amara\__init__.py", line 50, in parse if IsXml(source): Na

Re: Using XML w/ Python...

2005-12-11 Thread Jay
h, i just tryed the same thing earlier today and it didnt work, but now it does, i downloaded the standalone package and now it works in activepython when it didnt before and i tryed the same thing. And yes, last time i did type python setup.py install. Thx anyway. -- http://mail.python.org

Re: Using XML w/ Python...

2005-12-11 Thread uche . ogbuji
""" No, when i said "As far as it should work since their both transparent, umm, well its not." I meant that only mine isnt, maybe urs is but for some reason it isnt. And you said amara works fine for you, ok, then could you tell me what package to install... I have installed Amara 1.1.6 for Pyt

Re: Using XML w/ Python...

2005-12-11 Thread Jay
No, when i said "As far as it should work since their both transparent, umm, well its not." I meant that only mine isnt, maybe urs is but for some reason it isnt. And you said amara works fine for you, ok, then could you tell me what package to install... I have installed Amara 1.1.6 for Python

Re: Using XML w/ Python...

2005-12-11 Thread James
ActivePython is same as Standard Python distribution but with a few extras. "As far as it should work since their both transparent, umm, well its not." Why do you think it is not transparent? Did you try installing it on both? I have ActivePython 2.4 here and it loads amara fine. " Traceback (mo

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Ummm, my error conditions. PythonWin 2.3.5 (#62, Feb 9 2005, 16:17:08) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond ([EMAIL PROTECTED]) - see 'Help/About PythonWin' for further copyright information. >>> import amara Traceback (most recent call last): File

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Ok, im convinced to that i need to get Amara, I just installed 4Suite and now installed Amara. Still doesnt work because like i said before, i use ActivePython from http://www.activestate.com/Products/ActivePython/ And the requirements for Amara is Python 2.4 so Thats where we have a problem,

Re: Using XML w/ Python...

2005-12-11 Thread uche . ogbuji
""" Ok, i am now understanding some of parseing and how to use it and nodes, things like that. But say i wanted to take the title of http://www.digg.com/rss/index.xml and XMLTramp seemed the most simple to understand. would the path be something like this? import xmltramp rssDigg = xmltramp.loa

Re: Using XML w/ Python...

2005-12-11 Thread Jay
some great suggestions. Ok, i am now understanding some of parseing and how to use it and nodes, things like that. But say i wanted to take the title of http://www.digg.com/rss/index.xml and XMLTramp seemed the most simple to understand. would the path be something like this? import xmltramp rss

Re: Using XML w/ Python...

2005-12-11 Thread uche . ogbuji
Jay: """ K, I have this XML doc, i dont know much about XML, but what i want to do is take certain parts of the XML doc, such as blah and take just that and put onto a text doc. Then same thing doe the part. Thats about it, i checked out some of the xml modules but dont understand how to use th

Re: Using XML w/ Python...

2005-12-11 Thread Dieter Verfaillie
On Sat, 10 Dec 2005 21:12:04 -0800, Jay wrote: > OK, I have this XML doc, i dont know much about XML, but what i want > to do is take certain parts of the XML doc the most simple module I've found to do that is xmltramp from http://www.aaronsw.com/2002/xmltramp/ for example: #!/usr/bin/env pyt

Re: Using XML w/ Python...

2005-12-11 Thread Steve Holden
Jay wrote: > Yes i know, i did check out a couple but i could never understand it. > They were confusing for me and i wasnt hoping for a full typed > tutorial, just like some help with excactly wat im trying to do, not > the whole module... but watever, Thx alot for the feedbak. > Well I don't wan

Re: Using XML w/ Python...

2005-12-11 Thread Ivan Herman
Look at the standard python library reference http://docs.python.org/lib/dom-example.html the handleSlide function almost does what you want, except that you should use 'parse' and not 'parseString'. Original Message From: "Jay" <[EMAIL PROTECTED]> To: Subject: Re:Using XML w

Re: Using XML w/ Python...

2005-12-11 Thread Jay
Yes i know, i did check out a couple but i could never understand it. They were confusing for me and i wasnt hoping for a full typed tutorial, just like some help with excactly wat im trying to do, not the whole module... but watever, Thx alot for the feedbak. -- http://mail.python.org/mailman/li

Re: Using XML w/ Python...

2005-12-10 Thread James
XPath is the least painful way of doing it. Here are some samples with various libraries for XPath http://www.oreillynet.com/pub/wlg/6225 Read XPath basics here http://www.w3schools.com/xpath/default.asp It is not practical and perhaps not polite to expect people write tutorials just for you and