I wasn't ready...
I have this XML:
<section name="11">
<department department_id="10">
<employee employment_id="24" contract="125"/>
<employee employment_id="5054" contract_id="11184"/>
<employee employment_id="5253" contract_id="11493"/>
<employee employment_id="5253" contract_id="11494"/>
<employee employment_id="5253" contract_id="11495">
<employee employment_id="248" contract_id="1418"/>
</department>
</section>
If I use this code,
For Each node As XmlNode In mStaff.MatrikelXML.SelectNodes("//employee")
Console.WriteLine(node.Attributes.GetNamedItem("em ployment_id").Value)
Console.WriteLine(node.Attributes.GetNamedItem("co ntract_id").Value)
Next
I get this result:
24 125
5054 11184
5253 11493
248 1418
I want:
24 125
5054 11184
5253 11493
5253 11494
5253 11495
248 1418
Can someone please explain to me why this happens?
/frass
User submitted from AEWNET (http://www.aewnet.com/)