Deserializing XML in to get element details

Have taken ReFramework Template and it has a main.xaml file has two StateMachines,I have save as main.xml file and added deserialize activity.
Now I tried adding a code in for each loop (by adding object type as System.xml.linq.xelement)
objective is to get StateMachine details should display a message box which are available in main.xml file.
Please suggest me.