Reading XML in VB.NET is pretty straightforward . Create an XML Document Object, then you can load the XML and iterate through all of the nodes as required. You can search for nodes, use x-path, whatever you like.
Creating XML, on the other hand, is not so straight forward. There are essentially two methods.
Create an XML Document Object and set each of the Element and/or attribute nodes to the values you want
CA1000: Why shouldn't I declare static members on generic types?
I've written an abstract base type which uses generics to provide XML serialization and deserialization methods for use by its derived types, but I'm seemingly unable to write it in a way which completely satisfies FxCop code analysis. Here is the simplest form of the base class which reproduces the problem:
Code:
public abstract class XmlSerializableItem<T>
{
public string ToXml()
{
XmlSerializer