alexjamesbrown/JoeBlogs — Issue #5: Response from server does not contain valid XML.
Author: Bibhudutta
Created: 2011-11-22 08:45:12+00:00
State: open

Whenever i use to make a new post with tye follwing code, I get "Response from server does not contain valid XML - DTD is prohibited in this XML document. " exception. I am using .NET Framework 3.5.

Code :
string[] tags = {"demo1", "demo2" };
string Url = "url";
string User = "useraname"; //enter your username
string Password = "password"; //enter your password
var wp = new WordPressWrapper(Url, User, Password);
Post p = new Post();
p.Title = "Hello!";
p.Body = "Hello world!";
p.Tags = tags;
p.DateCreated = System.DateTime.Now;
int i = wp.NewPost(p, true);