
Hi, I updated the parser API according to the discussions (and the proposal of Fredrik) that we had in November. It now uses an XMLParser class that simply builds the libxml2 parse options in the constructor. I also added a global function "set_default_parser" that globally sets the default parser (options), or resets them if the supplied parser is None. Although the internal implementation may change later on, I think it is better to have this API in place *now* (i.e. for 0.9), so that we can simply add more features (i.e. keyword arguments) later on without changing the API itself. Since we already discussed this, I applied it directly to the trunk. Note, however, that currently not all parse options are backed by test cases. I added one that tests namespace stripping (in the new file test_parser.py), but considering the fact that most of the functionality is implemented entirely by libxml2, I (lazily) thought it's sufficient to test that the API works in general. Stefan