Printing XML in Python
Once you have read an XML document or generated a new one, you might want to write them to a file, standard output, or even a string. Python provides many options to print out XML in string. Let me start from the very basic one.
print doc.toxml()
Easy! Now I will go to more advanced version of printing XML. Python offers good extension APIs and we should try them. First of all, don’t forget to import them and it’s rocking!
import sys
sugree's blog
Add new comment
Read more
1703 reads
BTQueue migrated to Subversion
Actually, I managed to fix a freezing bug regarding failure during hash check for a week. Unfortunately, I can’t commit the patch to CVS at cvs.sourceforge.net because of connection refused error. It seems sourceforge is trying to force every projects to migrate to Subversion as soon as possible. They don’t want to maintain CVS anymore so CVS is now very unstable and nobody takes core of them for a week.
- sugree's blog
- Add new comment
- Read more
- 1251 reads
Oh my god! I have just found an article at Slashdot and another one at Blognone, Google has just released beta. Have you ever imagine that Google will jump into online dating market? There are so many competitors around the world. In Thailand, we have Googig. Google claims that Google Romance has its own Soulmate search algorithm.
- sugree's blog
- 1364 reads
How Technorati Helps You
According to larry’s request, it is a long story so I explain how Technorati works in this separate post instead of so long comment. Technorati is actually a specific search engine focusing on providing service involving blog, blog, and blog. Generally, search engine is a key component of surfing Internet today. Nobody knows where the information they are looking for are, especially blog. Blog is not just old fashion web content but in fact, it could be categorized as up-to-date content. In other words, blogs are frequently updated than normal web page. Though, blogs are not similar to dynamic pages like webboards or forums because they are contentful and are usually in medium length. Since blogs are updated so often, search engines must update their indexes as fast as possible. How to do that? Polling is not good enough in this situation so someone proposed asynchronous solution to solve this problem. The result is XML-RPC Ping service. This solution pushed additional duty to content publishers or content management software so Ping server will be notified about the update of given URL.
- sugree's blog
- 9 comments
- Read more
- 1351 reads
Drupal 4.7.0 RC1 is out!
After so long waiting for a few months, Drupal 4.7.0 RC1 is out there. Hopefully, this is the last release candidate so we could see Drupal 4.7.0 full release very soon. I will upgrade howforge.com tomorrow. Unfortunately, there is another one critical issue left in queue. So we should see RC2 shortly.
- sugree's blog
- Add new comment
- Read more
- 588 reads
Recent comments
2 years 11 weeks ago
2 years 16 weeks ago
2 years 16 weeks ago
2 years 17 weeks ago
2 years 17 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 20 weeks ago
2 years 20 weeks ago