def guess_wxr_version(self, tree):
for v in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT:1.0>'):<EOL><INDENT>try:<EOL><INDENT>tree.find('<STR_LIT>' % (WP_NS % v)).text<EOL>return v<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>raise CommandError('<STR_LIT>')<EOL>
We will try to guess the wxr version used
to complete the wordpress xml namespace name.