What steps will reproduce the problem?
1. Make a new post and save it using the following code snippet and
the .NET client library.
-----------------------------
AtomEntry entry = new AtomEntry();
entry.Content.Content = "<b> Bold </b>";
entry.Content.Type = "html";
entry.Title.Text = "testing";
Service service = new Service();
NetworkCredential nc = new NetworkCredential(m_userName, m_password);
service.Credentials = nc;
AtomEntry postedEntry = service.Insert(new Uri(m_Url), entry);
System.IO.MemoryStream stream = new System.IO.MemoryStream();
postedEntry.SaveToXml(stream);
string sData = System.Text.Encoding.UTF8.GetString(stream.ToArray());
stream.Close();
-----------------------------
What is the expected output? What do you see instead?
When I look at postedEntry - content is "<b>bold</b>" and
type is "html". When I call postedEntry.SaveToXml, the resulting xml
string I get contains -
"<content
type=\"html\">&lt;b&gt;bold&lt;/b&gt;</content>". The
SaveToXml encoded < to &lt; which I think is incorrect.
What version of the product are you using? On what operating system?
1.0.8 on Windows XP and Windows Server 2003.
Please provide any additional information below.
Original issue reported on code.google.com by mohanrao...@gmail.com on 4 Dec 2006 at 8:13
Original issue reported on code.google.com by
mohanrao...@gmail.com
on 4 Dec 2006 at 8:13