Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3301112
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:43:17+00:00 2026-05-17T20:43:17+00:00

I’m storing GData Event objects from the Google API in a datable (Ok, I

  • 0

I’m storing GData “Event” objects from the Google API in a datable (Ok, I had to cast them as an object or they wouldn’t go in), and I can access all the properties of the events perfectly, and use them to update Google, but I cannot serialize the datatable (or a parent dataset) to file because:

Type ‘Google.GData.Calendar.EventEntry, Google.GData.Calendar, Version=1.4.0.2, Culture=neutral, PublicKeyToken=aa6748391206b888’ does not implement IXmlSerializable interface therefore can not proceed with serialization.

This happens whether I try to simply serialize as XML or binary, and I can’t find a way around the problem; can’t any data structure be saved to a file one way or another?

To set the context, I was originally saving the GData EventFeed as XML which took about 30 seconds to figure out using Google API’s myEventFeed.saveToXML, thinking I’d just reload it later… I have spent two days trying to get the xml back into an EventFeed object, and have now switched to saving the EventEntry from the EventFeed to a datatable instead.

So I managed to save the Feed to XML 1.0 easily, but reading it back into a GData EventFeed was a different story – Google give you myFeed.saveToXML but no loadfromXML method :-/ So I ended up trying to add System.Runtime.Serialization to use something like:

Dim reader As XmlReader = XmlReader.Create(fileName)
Dim rssFeed As SyndicationFeed = SyndicationFeed.Load(reader)

This looked promising at first, but the data isn’t all in rssFeed, plus I’ve still got to get the data back into a Google.GData.Calendar.EventFeed before I can call the methods I need, and I can’t figure out how to do that either. I suppose could just copy the most important bits of data over from the rssFeed into new EventEntry’s, or do the same thing with the datatable by extracting the important data… but that’s going to be so inelegant, and risky down the line.

Any ideas which way I should turn now? Am I barking up the wrong trees?

Thanks,
Neil

VB .NET 3.5
VS 2008

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:43:17+00:00Added an answer on May 17, 2026 at 8:43 pm

    For anyone else who runs across this question, I think I’ve found the answer to the problem of serializing/deserializing the GData XML. I tried to do something similar to the OP but the EventFeed wouldn’t serialize, so I used the SaveToXML method, but as the OP stated, there isn’t a LoadFromXML method. I finally found the Parse() method, which works:

            //first write the string to a file
            List<EventEntry> eventList = new List<EventEntry>();
    
            EventQuery query = new EventQuery(feed);
            AtomFeed eventFeed = _service.Query(query) as AtomFeed;
            XmlWriter writer = new XmlTextWriter("test.xml", new UTF8Encoding());
    
            eventFeed.SaveToXml(writer);
            writer.Close();
    
            //next, parse the string from the file
            Stream newFs = new FileStream("test.xml", FileMode.Open);
    
            AtomFeed newFeed = new AtomFeed(new Uri("http://someURI"), null);
            newFeed.Parse(newFs, AlternativeFormat.Atom);
            newFs.Close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
For some reason, after submitting a string like this Jack’s Spindle from a text
i got an object with contents of html markup in it, for example: string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I used javascript for loading a picture on my website depending on which small
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.