|
You’re right, I did miss that…
Looking at this page: http://pyxml.sourceforge.net/topics/howto/section-install.html
It would seem that you may be right about the Pyd’s (it at least requires
a C compiler, making that likely – and almost guaranteeing it won’t
work w/ IronPython). Unfortunately we don’t support PYD’s
currently (and aren’t likely to soon) so most likely this won’t
currently work. If you absolutely need XPath support in the mean time I’d
suggest using .NET’s XMLPath (and if you need to work on both you could make
a thin wrapper over either PyXml for CPython and .NET’s XPath support).
For example: import clr clr.AddReference(‘System.Xml’) import System.Xml.XPath as XPath xpathDoc = XPath.XPathDocument(‘file://foo.txt’) Do
you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Dahlbacka Dino, you seemed to have
missed the part about pyxml.. On 5/17/06, Dino
Viehland <[EMAIL PROTECTED]>
wrote: This doesn't work for my in CPython 2.4 either, so I think
the docs are wrong: >>> from xml import xpath Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: cannot import name xpath >>> import sys >>> sys.version '2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit
(Intel)]' >>> Do you want to help develop Dynamic languages on CLR? (
http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) From: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On
Behalf Of Greg Lee I'm
porting an application that uses PyXML. The following from the PyXml
documentation http://pyxml.sourceforge.net/topics/howto/section-XPath.html
doesn't work: from xml import xpath Any
suggestions? I messed around with adding site-packages to IRONPYTHONPATH
but other BadThings happened. Here's
the installation: Microsoft Windows XP [Version 5.1.2600]
|
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
