title: How do I create with Java a well formatted request to publish on Wordpress with XML-RPC?
body: <p>I've found this guide on internet to publish on Wordpress using XML-RPC inside my Java Project, for example I want a message on my Blog, every time it's specified date.
  <a href="http://wordpress.rintcius.nl/post/look-how-this-wordpress-post-got-created-from-java" rel="nofollow">http://wordpress.rintcius.nl/post/look-how-this-wordpress-post-got-created-from-java</a></p>
  
  <p>Now, I've followed the guide and I'm trying to let it run but I don't understand yet how exactly parameters for my post works.
  For example using the method blogger.NewPost I call:</p>
  
  <pre>
  
      public Integer post(String contents) throws XmlRpcException {
      Object[] params = new Object[] {
          blogInfo.getApiKey(),
          blogInfo.getBlogId(),
          blogInfo.getUserName(),
          blogInfo.getPassword(),
          contents,
          postType.booleanValue()
      };
      return (Integer) client.execute(POST_METHOD_NAME, params);
      }
  
  </pre>
  
  <p>and my <i>"contents"</i> value is:</p>
  
  <pre>
  
      [title]Look how this wordpress post got created from java![/title]"
          + "[category]6[/category]"
          + FileUtils.getContentsOfResource("rintcius/blog/post.txt");
  
  </pre>
  
  <p>(I'm using "[" instead of "&lt;" and "]" instead of ">" that are processed by stackoverflow)</p>
  
  <p>Now, how could I use all parameters in this XML way?
  Parameters here: <a href="http://codex.wordpress.org/XML-RPC_MetaWeblog_API#metaWeblog.newPost" rel="nofollow">http://codex.wordpress.org/XML-RPC_MetaWeblog_API#metaWeblog.newPost</a></p>
  
  <p>And, it's the content only a "string" without any tag?</p>
  
  <p>Thanks a lot to all!</p>