Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: how do i delete lines from .txt file? "Urgent!" [modified] Pin
andredani11-Sep-07 12:15
andredani11-Sep-07 12:15 
AnswerRe: how do i delete lines from .txt file? "Urgent!" Pin
pmarfleet11-Sep-07 2:28
pmarfleet11-Sep-07 2:28 
QuestionSelecting unique nodes from an XML file Pin
Rocky#11-Sep-07 1:43
Rocky#11-Sep-07 1:43 
AnswerRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 2:55
Ed.Poore11-Sep-07 2:55 
GeneralRe: Selecting unique nodes from an XML file Pin
Rocky#11-Sep-07 3:01
Rocky#11-Sep-07 3:01 
GeneralRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 3:45
Ed.Poore11-Sep-07 3:45 
GeneralRe: Selecting unique nodes from an XML file Pin
Rocky#11-Sep-07 20:38
Rocky#11-Sep-07 20:38 
GeneralRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 22:40
Ed.Poore11-Sep-07 22:40 
Rocky# wrote:
Its actually counting the nodes at differet levels in that example.

Then simply remove statement(s) which are doing the counting.  What my idea was was that you could use this transformation to "transform" the data and then simply read in what you need from the result of the transformation.

An alternative method would be to use a dictionary to store them (and optionally count them).
Dictionary<string, int> counts = new Dictionary<string, int>();
foreach (XmlElement element in dom.DocumentElement)
{
    if (!counts.ContainsKey(element.Name))
    {
        counts.Add(element.Name, 0);
    }
    counts[element.Name]++;
}




AnswerRe: Selecting unique nodes from an XML file Pin
Rocky#12-Sep-07 0:42
Rocky#12-Sep-07 0:42 
QuestionMFC-like programming Pin
perrin486911-Sep-07 1:39
perrin486911-Sep-07 1:39 
AnswerRe: MFC-like programming Pin
originSH11-Sep-07 2:00
originSH11-Sep-07 2:00 
GeneralRe: MFC-like programming Pin
perrin486911-Sep-07 2:24
perrin486911-Sep-07 2:24 
AnswerRe: datagridview update database error Pin
Rocky#11-Sep-07 1:41
Rocky#11-Sep-07 1:41 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:23
Rocky#11-Sep-07 2:23 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:58
Rocky#11-Sep-07 2:58 
QuestionDraw shape Pin
udhyakumarm11-Sep-07 0:23
udhyakumarm11-Sep-07 0:23 
AnswerRe: Draw shape Pin
Christian Graus11-Sep-07 0:56
protectorChristian Graus11-Sep-07 0:56 
QuestionGet the Selected item from List view control Pin
udhyakumarm11-Sep-07 0:21
udhyakumarm11-Sep-07 0:21 
AnswerRe: Get the Selected item from List view control Pin
rohitsrivastava11-Sep-07 0:39
rohitsrivastava11-Sep-07 0:39 
GeneralRe: Get the Selected item from List view control Pin
udhyakumarm11-Sep-07 2:11
udhyakumarm11-Sep-07 2:11 
QuestionInserting a row into excel spreadsheet Pin
lourensG11-Sep-07 0:17
lourensG11-Sep-07 0:17 
AnswerRe: Inserting a row into excel spreadsheet Pin
Vikram A Punathambekar11-Sep-07 1:18
Vikram A Punathambekar11-Sep-07 1:18 
GeneralRe: Inserting a row into excel spreadsheet Pin
lourensG11-Sep-07 1:23
lourensG11-Sep-07 1:23 
QuestionRegarding telnet Pin
praveenkumar palla10-Sep-07 23:41
praveenkumar palla10-Sep-07 23:41 
AnswerRe: Regarding telnet Pin
Ermak8611-Sep-07 0:08
Ermak8611-Sep-07 0:08 

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.