I've an xml file (Sample.xml) which has the following structure
<RootElement>
<Child Name="FirstChild" Start="1" End="2"/>
<Child Name="SecondChild" Start="0" End="2"/>
<Child Name="ThirdChild" Start="1" End="2"/>
<Child Name="FourthChild" Start="0" End="2"/>
<Child Name="FifthChild" Start="0" End="2"/>
<Child Name="SixthChild" Start="1" End="2"/>
<MatchedChilds>
<Child Name="FirstChild" />
<Child Name="SecondChild" />
<Child Name="ThirdChild" />
<Child Name="FourthChild" />
<Child Name="FifthChild" />
<Child Name="SixthChild" />
</MatchedChilds>
</RootElement>
i need to remove the elements "Child" if it is directly under "RootElement"
please give me a XML to LINQ approch to do this