I'm making a generic XML class that can find, replace and display specific XML nodes/elements based on the inputted string.

I've already made a generic XML class that outputs the contents of the XML. By generic I mean, it can cater other XML files that doesn't have the same fields.

Void Main();
{
string fileName = @" ";
XmlDocument doc = new XmlDocument();
doc.Load(fileName);
xmlNode rootNode = doc.DocumentElement
DisplayNode(rootNode);
Console.ReadLine();
}

private static void DisplayNode(XmlNode node)
{
if (node.NodeType == XmlNodeType.text)
{
//print nodetype and values
}
else
{
//print nodetype and names
}

if (node.Attributes != null)
{
XmlAttributeCollection attrib = node.Attributes;
foreach (XmlAttribute attr in attrib)
{
//print attrib names and values
}
}

XmlNodelist childs = node.ChildNodes;
foreach(XmlNode child in childs)
{
// print childs
}

//heres the string values
string input = "1", "0", "Kenwood", "VA{0}";

It output the contents of the specific XML File.