-
extract from XML
hi all,
i have an XML file where the information is stored as given below, now i want to get the information where intakeid = "DF1111" and courseName = "OS"how to do it using Visual Basic 6.0 ?
<details>
<intake intakeid ="DF1111" teacher_id ="SGN" startingweek="12/31/2001" endingweek="4/8/2002" courseName = "MT"></intake>
<intake intakeid ="DF1111" teacher_id ="RK" startingweek="12/31/2001" endingweek="4/8/2002" courseName = "OS"></intake>
<intake intakeid ="DF1111" teacher_id ="SN" startingweek="12/31/2001" endingweek="4/8/2002" courseName = "CSA"></intake>
</details>
Thanks
waqas
-
Hi
It is in JS, just change syntax.
xml = new ActiveXObject("Msxml2.DOMDocument");
xml.load(urlOrFile);
nodeList = xml.selectNodes('//details/intake[intaked="DF1111" and courseName = "OS"]');
nodeList.length - count of nodes
nodeList.item(i) - node
-
-
hi dKar,
can u please help me with same thing above in Java using sax or dom....?
thanks
waqas