sandriekus
Member
- Joined
- Apr 20, 2009
- Messages
- 9
- Programming Experience
- Beginner
a little bit from my xml:
how can i get the information from <periods> with the argument "lesson_teacher id="HA"" (whitch is 1 in this example)?
to get the lesson id i use the following code:
HTML:
<lesson id="13">
<periods>1</periods>
<lesson_subject id="SU" />
<lesson_teacher id="HA" />
<lesson_classes id="CL" />
</lesson>
<lesson id="14">
<periods>2</periods>
<lesson_subject id="OW" />
<lesson_teacher id="PO" />
<lesson_classes id="CF" />
</lesson>
how can i get the information from <periods> with the argument "lesson_teacher id="HA"" (whitch is 1 in this example)?
to get the lesson id i use the following code:
VB.NET:
Dim getlessonid As String = String.Format("//lesson[lesson_teacher/@id='{0}']/@id", "HA")