VB.NET: Another difficult XML problem

toytoy

Well-known member
Joined
Jul 16, 2004
Messages
46
Programming Experience
1-3
Say i have these Xml tag
VB.NET:
<Books>
	  <Title section ="1">
		  <Reference web = "[url="http://www.any.com"]www.any.com[/url]" topic = "1">
	  </Title>
	  <Title section ="1">
		  <Reference web = "[url="http://www.idea.com"]www.idea.com[/url]" topic = "2">
	  </Title>
	  <Title section ="2">
		  <Reference web = "[url="http://www.howTo.com"]www.howTo.com[/url]" topic = "3">
	  </Title>
	  <Title section ="3">
		  <Reference web = "[url="http://www.do.com"]www.do.com[/url]" topic = "4">
	  </Title>
</Books>
I want to extract all the web and topic attribute only in Title section "1"...

Thanks
 
Cycle through the nodelist and use an if node.attributes("section").innertext = 1

TPM
 
Back
Top