I need to determine the "Skill" when the "Group" and the "SubSkill" is provided. Can you do this us

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<?xml version="1.0" encoding="utf-8" ?><br/>
<MYROOT><br/>
<Group name="G1 <br/>
<Skill name="G1Skill1 <br/>
<SubSkill>G1skill1sub1</SubSkill><br/>
<SubSkill>G1skill1sub2</SubSkill><br/>
</Skill ><br/>
<Skill name="G1Skill2 <br/>
<SubSkill>G1skill2sub1</SubSkill><br/>
<SubSkill>G1skill2sub2</SubSkill><br/>
</Skill ><br/>
</Group><br/>
<Group name="G2 <br/>
<Skill name="G2Skill1 <br/>
<SubSkill>G2skill1sub1</SubSkill><br/>
<SubSkill>G2skill1sub2</SubSkill><br/>
</Skill ><br/>
<Skill name="G2Skill2 <br/>
<SubSkill>G2skill2sub1</SubSkill><br/>
<SubSkill>G2skill2sub2</SubSkill><br/>
</Skill ><br/>
</Group><br/>
</MYROOT><br/>
<br/>
<br/>
I need to determine the "Skill" when the "Group" and the "SubSkill" is provided. <br/>
Can you do this using Single LINQ to XML query?<br/>
For e.g . Inputs are "G1" & "G1skill1sub1" <br/>
Expected output = G1Skill1 (Using single LINQ to XML)<br/><hr class="sig Ashish Fugat (9960978134) Software Engineer

View the full article
 
Back
Top