XML and Python


Posted

in


Uche Ogbuji’s article on proper XML output in Python went live today:

The main problem with simple print is that it knows nothing about the syntactic restrictions in XML standards. As long as you can trust all sources of text to be rendered as proper XML, you can constrain the output as appropriate; but it’s very easy to run into subtle problems which even experts may miss.