ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-sig
xml-sig
Re: [XML-SIG] xml.dom won't traverse the whole XML tree
by Uche Ogbuji other posts by this author
May 21 2005 8:41AM messages near this date
Re: [XML-SIG] xml.dom won't traverse the whole XML tree | [XML-SIG] xml.dom won't traverse the whole XML tree
& XSLT On Thu, 2005-05-19 at 10:54 +0200, Alexandre CONRAD wrote:
>  Hello,
>  
>  I have found out that this problem comes from a possible bad version of
>  pyxml. I was using the standard python + xml package comming with RH9. I
>  tryied the script on my windows machine and it worked. So I've installed
>  PyXML 0.8.4, and it works fine now...
>  
>  Humpf... I thought my syntax was wrong. I was getting crazy...

Sorry it took me a while to get to this thread, but are you really sure
you want to be using 4DOM?  It offers the worst performance of all
options, I think.

Why not consider using minidom?  You can do a lot of the node filter
type stuff using techniques such as I explore here:

http://www.xml.com/pub/a/2003/01/08/py-xml.html

Of course, I also encourage you to try Domlette from 4Suite, which is
pretty comfy to any DOM users, but is also very fast and offers full
XPath support (which should also eliminate the NodeFilter cruft, in case
generators bend your brain).


-- 
Uche Ogbuji                               Fourthought, Inc.
http://uche.ogbuji.net                    http://fourthought.com
http://copia.ogbuji.net                   http://4Suite.org
Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.
html
XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html
Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/
xml/library/x-oocalc/
Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developer
works/xml/library/x-think31.html

_______________________________________________
XML-SIG maillist  -  XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Alexandre CONRAD
Alexandre CONRAD
Uche Ogbuji

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved