IT Nursery
I am receiving XML strings over a socket, and would like to convert these to C# objects. The messages are of the form: <msg> <id>1</id> <action>stop</action> </msg> I am...
  • May 30, 2022
  • 0 Comments
I’m pulling in the XML from Twitter via OAuth. I’m doing a request to http://twitter.com/account/verify_credentials.xml, which returns the following XML: <?xml version="1.0" encoding="UTF-8"?> <user> <id>16434938</id> <name>Lloyd Sparkes</name> <screen_name>lloydsparkes</screen_name> <location>Hockley,...
  • May 22, 2022
  • 0 Comments
I have the following method to save an Object to a file: // Save an object out to the disk public static void SerializeObject<T>(this T toSerialize, String filename) {...
  • May 12, 2022
  • 0 Comments
An application I’ve been working with is failing when I try to serialize types. A statement like XmlSerializer lizer = new XmlSerializer(typeof(MyType)); produces: System.IO.FileNotFoundException occurred Message="Could not load file...
  • May 10, 2022
  • 0 Comments