|
-
July 4th, 2002, 01:49 AM
#1
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
work, work and only work!!
-
July 5th, 2002, 01:04 AM
#2
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
Denis.
-
July 5th, 2002, 01:45 AM
#3
work, work and only work!!
-
July 9th, 2002, 02:56 AM
#4
hi dKar,
can u please help me with same thing above in Java using sax or dom....?
thanks
waqas
work, work and only work!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|