title: i can't post from python to my wordpress site by wordpress_xmlrpc i get ExpatError: not well-formed (invalid token): line 1, column 222
body: <p>I can't post  from python to my wordpress site by wordpress_xmlrpc I get ExpatError: not well-formed (invalid token): line 1, column 222</p>
  
  <p>when I am trying to run this code </p>
  
  <pre><code>from wordpress_xmlrpc import Client, WordPressPost
  from wordpress_xmlrpc.methods.posts import GetPosts, NewPost
  from wordpress_xmlrpc.methods.users import GetUserInfo
  
  wp = Client('http://mysite.wordpress.com/xmlrpc.php', 'username', 'password')
  </code></pre>
  
  <p>I got this error ExpatError: not well-formed (invalid token): line 1, column 222</p>