Quick Tip: Using XPath to find nodes by attribute value

There are some things that I can just remember: phone numbers, locker combinations, and the like.  There are others that I have to lookup again and again and again.  XPath query syntax is one of the latter items.  Today, I’d like to talk a little about XPath queries.The following XML contains a collection of “Friend”…

0

Quick Tip: Specifying a field’s name when using the XmlSerializer

Last month, I wrote about how to instruct the XmlSerializer to create an XML attribute for fields in an object.  Today, I’d like to talk about how to specify the name used to represent a field in the resulting XML.By default, when an object is serialized, fields are serialized into nodes with names that match…

1

Quick Tip: Serializing an Object Field as an XML Attribute

The addition of the XML Serializer is one of the reasons I really love version 2 of the .NET Compact Framework.  I use the XML Serializer in very nearly every application I write; to save application state, data files, etc.  By default, the XML Serializer will create a child node for every field in a…

1

Simple object remoting using the XmlSerializer

Today, I’m going to talk about how you can use the XmlSerializer, TcpClient and TcpListener classes to create a simple remoting layer to send your custom objects from one device to another.  This post requires the .NET Compact Framework version 2 (beta 1) or the .NET Framework for desktop PCs. Since NetCF doesn’t support the…

3