aPiopudgininny21
New Member
Hi i have a scenario where i want to search the node in xml file and identify the type of file.\[code\]XDocument xDococumnetObj = XDocument.Load(filePath);XElement presentationElement= xDococumnetObj.Descendants() .Where(x => x.Name.LocalName.Equals("collegge")) .FirstOrDefault();\[/code\]I have written query which returns me collegge node. But i just want to identify the type of document it is. I want to identify the document whether it contains \[code\]{"Collegge","University","Company","Banking"}\[/code\] in single query and return its Type only.