I would like to serialize a C# class structure out to XML and provide for a specific node name without having to have a bunch of nested classes. Is that possible using attributes?For example say I have the following XML:\[code\]<OuterItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InnerItem> <ItemValue>something i need</ItemValue> </InnerItem></OuterItem>\[/code\]I have an XML serialization method that looks like this: \[code\]public static string XmlSerializeToString<T>(T value){ if (value =http://stackoverflow.com/questions/15624846/= null) { return null; } XmlSerializer serializer = new XmlSerializer(typeof(T)); XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = false; settings.OmitXmlDeclaration = true; using (StringWriter textWriter = new StringWriter()) using (XmlWriter xmlWriter = XmlWriter.Create(textWriter, settings)) { serializer.Serialize(xmlWriter, value); return textWriter.ToString(); }}\[/code\]Would I have to have a C# class structure like this?\[code\]public class OuterItem{ public InnerItem InnerItem { get; set; }}public class InnerItem{ public string ItemValue { get; set; }}\[/code\]Or is it at all possible to declare how far down in the XML document my node should be with something like this (pseudo code):\[code\]public class OuterItem{ [XmlNode("InnerItem\ItemValue")] public string ItemValue { get; set; }}\[/code\]