Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
|
BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
This is the forum to discuss the Wrox book Beginning XML, 4th Edition by David Hunter, Jeff Rafter, Joe Fawcett, Eric van der Vlist, Danny Ayers, Jon Duckett, Andrew Watt, Linda McKinnon; ISBN: 9780470114872
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 12th, 2008, 10:32 AM
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RSS Code for python 2.5 (pyxml Vs 4Suite)

Hey folks,

I'm working through Chapter 13 p.540-554

of course I am using python 2.5 and the code is designed to exploit pyxml which does not have a python 2.5 distro.

I have considered compiling. Maybe i'd compile on linux, but a windows box scares me. Just like glass, Windows tends to break when I try to clean something on it.

Any ideas of lines of code that need to be modified to accomodate 4suite instead of pyxml?

I have tried:

feed_reader.py
---------------

Code:
import xml.sax # old code
Code:
import Ft.Xml.Sax #new code, didn't work
Code:
from Ft.Xml import Sax # Second alternative. can not find SplitQname dll

something that did work, or at least passes bug test, full compile still fails due to above:

feed.py
---------

Code:
import xml.utils.iso8601 # old code
...
self.date = xml.utils.iso8601.parse(new_date)
Code:
import Ft.Lib.Time# new code works
...
self.date = Ft.Lib.Time.FromISO8601(new_date)
Any other ideas?

 
Old February 12th, 2008, 10:49 AM
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found an interesting rescource http://livingpyxml.python-hosting.com/wiki/. Thye have a link to a compiled version of PyXml for Windows and Python 2.5

It would make things much easier than trying to re-factor the code.

I will try this out and report back








Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Python? elvisfeverr Python 6 February 15th, 2019 02:30 AM
Python code optimization icopec Python 2 December 13th, 2011 05:13 AM
python arafat.eajaz Other Programming Languages 0 July 18th, 2008 03:16 AM
Browser RSS feed auto detection code here madok BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 29th, 2006 09:04 AM
code for rss work hsascubaboy RSS and Atom 2 May 29th, 2005 06:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.