473,395 Members | 1,383 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,395 software developers and data experts.

Recommendations about xmltramp

I'd like to get experts' opinion about
xmltramp (http://www.aaronsw.com/2002/xmltramp/).

I am still in early stages of exploration - I need to
determine to process XML in my next project.
Currently I like ElementTree (@ effbot.org) and xmltramp.
But I am bit concerned about Mark Pilgrim's comments about
xmltree(http://diveintomark.org/archives/bli...20031218035253)

Can anyone elaborate/explain about scenarios in which xmltramp can corrupt
data?
Or was it all just a joke...
Jul 18 '05 #1
5 1469
Jonas Hei wrote:
Can anyone elaborate/explain about scenarios in which xmltramp can
corrupt data?


xmltramp is a XML data reading framework. It cannot corrupt data.
It may parse it incorrectly though.

Istvan.
Jul 18 '05 #2
On Fri, 17 Sep 2004 13:39:36 -0400, Istvan Albert <ia*****@mailblocks.com>
wrote:

xmltramp is a XML data reading framework. It cannot corrupt data.
It may parse it incorrectly though.

Istvan.


It appears to be a little bit more than that.
Check out 'Mutations and re-serialization' section at
http://www.xml.com/lpt/a/2003/12/17/py-xml.html
Jul 18 '05 #3
"Jonas Hei" <ma******@hotmail.com> writes:
I'd like to get experts' opinion about
xmltramp (http://www.aaronsw.com/2002/xmltramp/).


I don't know about expert, but I've used xmltramp for quick hacks on a
bunch of projects and I love it. It's the simplest API I've ever used
for accessing XML. It builds trees in memory so it's not going to work
for 100 megabyte documents. And it's fast and loose enough that I
might be nervous about using it for very meticulous work, although I
have no specific evidence of it failing. Overall it's really nice.

Here's a sample:

rssFeed = urllib.urlopen("http://.../index.rss")
rss = xmltramp.parse(rssFeed.read())

print rss.channel.title
for i in rss.channel:
if i._name == 'item':
print i.title

More here:
http://www.nelson.monkey.org/~nelson.../xmltramp.html
Jul 18 '05 #4
djw
Jonas Hei wrote:
I'd like to get experts' opinion about
xmltramp (http://www.aaronsw.com/2002/xmltramp/).

I am still in early stages of exploration - I need to
determine to process XML in my next project.
Currently I like ElementTree (@ effbot.org) and xmltramp.
But I am bit concerned about Mark Pilgrim's comments about
xmltree(http://diveintomark.org/archives/bli...20031218035253)

Can anyone elaborate/explain about scenarios in which xmltramp can
corrupt data?
Or was it all just a joke...


The PyRXP parser (http://www.reportlab.org/pyrxp.html) lets you access
XML in a way similar to xmltree using the TagWrapper class in
xmlutils.xml. I've used it and it has worked very well (its also very fast).

-Don
Jul 18 '05 #5
Jonas Hei wrote:
It appears to be a little bit more than that.
Check out 'Mutations and re-serialization' section at
http://www.xml.com/lpt/a/2003/12/17/py-xml.html


Oh, I see, this feature was not evident from the
xmltramp page.

But reading the information above it appears that
it is a very ad-hoc and hackish solution that might
have been the reason for the negative comment that
the original poster was inquiring about.

Istvan.

Jul 18 '05 #6

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

Similar topics

0
by: jerrygarciuh | last post by:
I was wondering if anyone had any advice or recommendations on finding a stable, extensible eCom cart/ fullfillment system using mySQL and PHP (or Perl)? My client is preparing to get online...
0
by: Linus Nikander | last post by:
Browsing peoples comments at amazon might be rewarding, but it sure takes a lot of time. I'm trying to find good (best) books for a couple of java-related areas. As most people who subscribe to...
1
by: NotGiven | last post by:
I have been using a large hosting company and until recently, when I wanted to combine domain names and they will not let me out of a contract with two months remaining to combine accounts. they...
1
by: Ron Fluegge | last post by:
I have been approached by several clients to place the source code for my commercial applications in escrow. Their concern relates to the "size" of my company and that they need some assurances...
6
by: Peter E. Granger | last post by:
First, I would like to apologize in advance if this is not the appropriate place to post this message; of the .NET-related newsgroups I found, this seemed to be the most general. If the information...
8
by: Parts Manager | last post by:
Hello All, I would like a couple of book recommendations to get a jump start on Access and to gain some knowledge on Access. I have a few years in programming Basics, then to PDS 7.0, then...
10
by: SusanV | last post by:
Time to learn something new, anyone have any recommendations for a good reference book on ASP.Net? Also recommendations on AJAX would be most welcome. TIA, SusanV
2
by: Pradnyesh Sawant | last post by:
Hello, I have a code snippet which does 'import xmltramp' to parse an xml file received over the network. Also, I have 2 instances of python, namely python2.4 and python2.5 on my box. The...
3
by: Brian Simmons | last post by:
Hi All, We've done a lot of google'ing and demo downloading/installing of a bunch of ASP.net CMS solutions out there. But, I want to get some real-world opinions/recommendations of what...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.