Click here to Skip to main content
15,887,365 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Help for Xindice Database Pin
led mike31-Jan-08 5:32
led mike31-Jan-08 5:32 
GeneralRe: Help for Xindice Database Pin
Prasanth M V31-Jan-08 17:27
Prasanth M V31-Jan-08 17:27 
GeneralRe: Help for Xindice Database Pin
led mike1-Feb-08 6:00
led mike1-Feb-08 6:00 
GeneralRe: Help for Xindice Database Pin
Prasanth M V4-Feb-08 18:37
Prasanth M V4-Feb-08 18:37 
GeneralRe: Help for Xindice Database Pin
led mike5-Feb-08 8:37
led mike5-Feb-08 8:37 
GeneralRe: Help for Xindice Database Pin
Prasanth M V6-Feb-08 18:27
Prasanth M V6-Feb-08 18:27 
GeneralSelect distinct nodes from XML File using VB.NET Pin
dnsl29-Jan-08 0:21
dnsl29-Jan-08 0:21 
GeneralRe: Select distinct nodes from XML File using VB.NET Pin
newc129-Jan-08 5:45
newc129-Jan-08 5:45 
Hi,

If you are using the latest version of the .Net framework then this task can be performed easily using LINQ.

Below is an example of what you are trying to do in C#:

XDocument servers = XDocument.Load(@"C:\server.xml");<br />
<br />
            var q = from c in servers.Descendants("server")<br />
                      orderby (string)c.Element("con_id") ascending<br />
                      group c by (string)c.Element("con_id");<br />
<br />
            foreach (var con_id in q)<br />
                  Console.WriteLine(con_id);


Sorry, I don't have a version of this in VB.Net!

Clean code is the key to happiness.

GeneralXML Inheritence using XSLT Pin
Matty2228-Jan-08 13:20
Matty2228-Jan-08 13:20 
Generaldistinc or group by in xpatch Pin
sepel27-Jan-08 13:18
sepel27-Jan-08 13:18 
Generalnet4manpower need freelance webdesigner and software developer Pin
net4manpower26-Jan-08 8:06
net4manpower26-Jan-08 8:06 
GeneralWrite xsd for an Xml File Pin
VanithaVasu23-Jan-08 18:20
VanithaVasu23-Jan-08 18:20 
GeneralXML Parser using C++/VC++ Pin
QuickDeveloper20-Jan-08 20:04
QuickDeveloper20-Jan-08 20:04 
GeneralRe: XML Parser using C++/VC++ Pin
led mike24-Jan-08 5:07
led mike24-Jan-08 5:07 
QuestionHow to add an xml node such that validition of the file should not be failed? Pin
nicolus20-Jan-08 17:10
nicolus20-Jan-08 17:10 
QuestionRepresenting arrays of values in an XML file. Pin
Jack 292716-Jan-08 16:06
Jack 292716-Jan-08 16:06 
GeneralRe: Representing arrays of values in an XML file. Pin
George L. Jackson17-Jan-08 9:31
George L. Jackson17-Jan-08 9:31 
GeneralRe: Representing arrays of values in an XML file. Pin
led mike17-Jan-08 9:43
led mike17-Jan-08 9:43 
GeneralRe: Representing arrays of values in an XML file. Pin
George L. Jackson17-Jan-08 12:33
George L. Jackson17-Jan-08 12:33 
GeneralRe: Representing arrays of values in an XML file. Pin
led mike17-Jan-08 9:42
led mike17-Jan-08 9:42 
Questionhow to read xml using javascript? Pin
googlejumbo15-Jan-08 0:09
googlejumbo15-Jan-08 0:09 
AnswerRe: how to read xml using javascript? Pin
led mike15-Jan-08 6:24
led mike15-Jan-08 6:24 
GeneralDataGrid: view XML data Pin
aluisdo14-Jan-08 2:47
aluisdo14-Jan-08 2:47 
QuestionHow to filt some items when transform xml to html with xslt? Pin
guiqul16313-Jan-08 19:40
guiqul16313-Jan-08 19:40 
Generalschema Pin
justintimberlake12-Jan-08 17:53
justintimberlake12-Jan-08 17:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.