Binding XML file to WPF Treeview

I am trying to build a XML file editor, where I want to add XML file to treeview control, and based on it's nodes and attributes, i have to show editable textboxes or other controls. I serializing and deserializing this xml data to process in someother module.

I am trying to follow this Stackoverflow question but I cannot get it working, nothing binds with the control. I am fairly new to XAML and MVVM. so any help , suggestion will be really appreciated.

PS: Input is a xml file, so based on your suggestions i am open to bind xml directly to treeview or serialzed classes through MVVM[preffered].

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Xml;
using System.Xml.Serialization;
//using CoreElements.Core.Interlocking;
using System.Xml.Linq;
using System.Reflection;