私の質問は、というxml変数の変数をチェックしxmlauthorたいのですが、基本的に何かが書かれているかどうかをチェックしたいのです。どうすればいいですか?これは私がこれまでに書いたものです:
for num in ic : 
    xmlauthor = dom.getElementsByTagName("author")[0]
    if not xmlauthor: 
        content += "***Changes by:"  + xmlauthor + "*** \n \n"
    else:
        content += "***Changes are made Anonumously** \n \n" 
そして、これが私のコンソールで発生しているエラーです
content += "***Changes by:"  + xmlauthor + "*** \n\n" 
TypeError: cannot concatenate 'str' and 'instance' objects