473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

xpath support in python 2.4

Hi,
I would like to use xpath modules in python2.4.... In my local machine
I am running python2.3.5 and on the server I run python2.4. I have seen
that while on my computer i am able to import xml.xpath, on the server
the module seems to not exist. Is it still part of the standard
library? if not, what should I use?

Thank you in advance,
Andrea Fiore

Nov 29 '05 #1
5 2063
"And80" wrote:
I would like to use xpath modules in python2.4.... In my local machine
I am running python2.3.5 and on the server I run python2.4. I have seen
that while on my computer i am able to import xml.xpath, on the server
the module seems to not exist. Is it still part of the standard
library? if not, what should I use?


sounds like you've installed

http://pyxml.sourceforge.net/

on one of your machines, but not on the other.

(afaik, xml.xpath has never been part of the standard library.)

</F>

Nov 29 '05 #2

And80 wrote:
Hi,
I would like to use xpath modules in python2.4.... In my local machine
I am running python2.3.5 and on the server I run python2.4. I have seen
that while on my computer i am able to import xml.xpath, on the server
the module seems to not exist. Is it still part of the standard
library? if not, what should I use?

Thank you in advance,
Andrea Fiore


a couple disconnected observations:

- for install questions, you need to specify O/S, how you installed
python, maybe something about RAM/CPU if performance constraints

- check the blogalog about Xpath earlier this year:
http://www.oreillynet.com/pub/wlg/6239
http://www.nelson.monkey.org/~nelson...hon/xpath.html

Nov 29 '05 #3
[And80]
I would like to use xpath modules in python2.4.... In my local machine
I am running python2.3.5 and on the server I run python2.4. I have seen
that while on my computer i am able to import xml.xpath, on the server
the module seems to not exist.
Is it still part of the standard library?
No, it's not. Not sure if it ever was.
if not, what should I use?


Install PyXML

http://pyxml.sourceforge.net

HTH,

--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
Nov 29 '05 #4
"And80": "Is [the xml.xpath module] still part of the standard
library?"
Alan Kennedy: "No, it's not. Not sure if it ever was. "

It never was.

--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/

Nov 29 '05 #5
Fredrik Lundh wrote:
sounds like you've installed
http://pyxml.sourceforge.net/
on one of your machines, but not on the other.


or ActiveState Python on one and python.org Python on the other???

Just a guess. No STFWing was done before posting this message. ;-)

Nov 29 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
5
by: Alexandre | last post by:
Hello all, Could someone explain to me why there is no nextElement in minidom ? if i execute this : *************************************** import xml.dom.minidom doc = """\ <root>...
1
by: James | last post by:
A couple of years ago there wasn't one and the recommendation was to simply use Java libs. Have things changed since? I see ElementTree promises one in the future but are there any out now? ...
3
by: Stefan Behnel | last post by:
Hi! I need to generate source code (mainly Java) from a domain specific XML language, preferably from within a Python environment (since that's where the XML is generated). I tried using...
1
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT...
3
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; We have a TreeView that represents an xml file (or it's schema is a more accurate statement). We want to have a double click on a node in the tree generate the XPath to get to that node. ...
0
by: bruce | last post by:
valid point...!! here's the test python.. ugly as it is!! Lodge It New All About ? Paste #83093
1
by: bruce | last post by:
Hi. Got a test web page, that basically has two "<html" tags in it. Examining the page via Firefox/Dom Inspector, I can create a test xpath query "/html/body/form" which gets the target form for...
0
by: John Krukoff | last post by:
On Wed, 2008-09-03 at 13:36 -0700, bruce wrote: Well, you could just do the test (and the count!) in the xpath expression: count( //tr/td ) It sounds like you're not familiar with xpath? I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.