Compare two XML strings in Python

I had to compare two XML strings for some unit tests, and if you want to do it without considering the indentation, or the newlines, it is a little bit tricky.I thought that parsing the original xml and returning it again (using minidom), I'd got...

comments

File encodings

Many times, specially when writing web pages, you have to deal with texts with different encodes (if web site isn't in us-ascii, of course). Here are some useful tips for not spending too much time with this:bash# file -i (for knowing the...

comments

Firefox Extensions

When developing web pages is essential having a good set of firefox extensions. It gives you powerful tools for checking accessibility, and for getting more information on your website, and are also good fot getting information about all...

comments

bug in IE

It's known that Microsoft Internet Explorer usually shows pages in a different way than good web programmers expect. Luckily those differences diminish when using XHTML Strict and CSS, but sometimes we are surprised for some huge bugs.This is the...

comments

Web 2.0

Those days everybody is using Web 2.0 and AJAX, but everyone understand a different meaning of those technologies. Here I'll explain my interpretation.In short I'll use this formula:Web 2.0 = XHTML Strict + CSS2 + AJAXIt means the end of using...

comments