12 messages in com.googlegroups.bloggerdevRe: [bloggerDev] Re: Updating an entr...| From | Sent On | Attachments |
|---|---|---|
| swatkatz | 24 Oct 2006 07:08 | |
| Frank Mantek | 24 Oct 2006 08:57 | |
| swatkatz | 24 Oct 2006 11:50 | |
| Frank Mantek | 24 Oct 2006 23:07 | |
| swatkatz | 25 Oct 2006 12:14 | |
| Pete Hopkins ☠ | 25 Oct 2006 13:12 | |
| Frank Mantek | 26 Oct 2006 04:35 | |
| swatkatz | 26 Oct 2006 10:48 | |
| Pete Hopkins ☠ | 26 Oct 2006 11:28 | |
| Eris Ristemena | 26 Oct 2006 13:37 | |
| Pete Hopkins ☠ | 26 Oct 2006 13:47 | |
| Frank Mantek | 26 Oct 2006 23:04 |
| Subject: | Re: [bloggerDev] Re: Updating an entry using GData API.![]() |
|---|---|
| From: | Frank Mantek (fman...@gmail.com) |
| Date: | 10/26/2006 04:35:54 AM |
| List: | com.googlegroups.bloggerdev |
So, i can get the atom stream just by going to: http://swatkatz1.blogspot.com/atom.xml and try to parse this. I think i already know what the problem is, you have content with a media type in there, and i am betting my parser fails there quite nicely...
And it does. Looking at the code for parsing a content, i do not have a default for media types i don't understand. I changed the code to TRY to parse any unknown content as xhtml by using readInnerXml().
I checked the change into subversion, please let me know if that fixes your issue. Note, only the code is checked in, you would have to build the DLLs yourself.
Frank Mantek
On 10/25/06, swatkatz <moha...@gmail.com> wrote:
I will get Fiddler and see what gets passed over the wire.
As far as the bug is concerned, yes it happens when I query and update using the code I posted above. The blog I am using is http://swatkatz1.blogspot.com and the corresponding feed that I am using is http://www.blogger.com/feeds/31090276/posts/full (not sure how you'll be able to access this without my username and password :-))
The code I am using to check the Xml I receive is -
-------------------------------------------------------------------------------------- Service service = new Service(); NetworkCredential nc = new NetworkCredential(m_userName, m_password); service.Credentials = nc; FeedQuery singleQuery = new FeedQuery(); singleQuery.Uri = new Uri(m_Url); AtomFeed newFeed = service.Query(singleQuery); AtomEntry entry = newFeed.Entries[0]; System.IO.MemoryStream stream = new System.IO.MemoryStream(); entry.SaveToXml(stream); string sData = System.Text.Encoding.UTF8.GetString(stream.ToArray()); stream.Close();
----------------------------------------------------------------------------------------- If I use the above code to retrieve any posting in my blog that has HTML in it, I get the floating HTML tags like I described in my previous post and update fails for those entries.
Thanks for your help.




