After struggling, I have found out the solution:
Actually I was trying to parse an inner element, which was incorrect; I was already having the classes from the xsd tool, so I can Simply use the code as:
XmlSerializer serializer = new XmlSerializer(typeof(RootClass));
using (TextReader reader = new StreamReader(filePath))
{
RootClass parameterFromFile = (RootClass)serializer.Deserialize(reader);
}