Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Job Pin
Ravi Bhavnani5-Jan-06 13:34
professionalRavi Bhavnani5-Jan-06 13:34 
GeneralRe: C# Job Pin
Sebastian Schneider5-Jan-06 23:10
Sebastian Schneider5-Jan-06 23:10 
GeneralRe: C# Job Pin
Ravi Bhavnani6-Jan-06 1:31
professionalRavi Bhavnani6-Jan-06 1:31 
GeneralRe: C# Job Pin
TAREQ F ABUZUHRI6-Jan-06 3:55
TAREQ F ABUZUHRI6-Jan-06 3:55 
GeneralRe: C# Job Pin
ashishdhar10-Jan-06 14:56
ashishdhar10-Jan-06 14:56 
QuestionSmall XML problem Pin
Martin235-Jan-06 4:37
Martin235-Jan-06 4:37 
AnswerRe: Small XML problem Pin
Guffa5-Jan-06 5:34
Guffa5-Jan-06 5:34 
GeneralRe: Small XML problem Pin
Martin235-Jan-06 6:06
Martin235-Jan-06 6:06 
Ok good point!, this is an example;

private void button4_Click(object sender, EventArgs e)
{
StreamReader sr = new StreamReader(@"data.xml");
XmlTextReader xr = new XmlTextReader(sr);
XmlDocument docData = new XmlDocument();
docData.Load(xr);

XmlNodeList wikinodes = wiki.SelectNodes("data/page");

lblNodes.Text = dataNodes.Count.ToString();
}

When it works, lblNodes will show there are 1699 nodes, when it doesnt work it just says there are 0 nodes.


The XML file looks roughly like this;

<data xsi:schemaLocation="http://www.website.com" version="0.3" xml:lang="en">
<page>informationhere</page>
<page>informationhere</page>
<page>informationhere</page>
</data>


but will only work if I change it to look like this;

<data>
<page>informationhere</page>
<page>informationhere</page>
<page>informationhere</page>
</data>

I hope that is enough info, Thank you!
AnswerRe: Small XML problem Pin
Guffa5-Jan-06 7:19
Guffa5-Jan-06 7:19 
GeneralRe: Small XML problem Pin
Martin235-Jan-06 9:11
Martin235-Jan-06 9:11 
AnswerRe: Small XML problem Pin
Guffa9-Jan-06 1:48
Guffa9-Jan-06 1:48 
AnswerRe: Small XML problem Pin
leppie5-Jan-06 11:37
leppie5-Jan-06 11:37 
QuestionConverting PDF to Text in C# Pin
curtKauf5-Jan-06 4:34
curtKauf5-Jan-06 4:34 
AnswerRe: Converting PDF to Text in C# Pin
Stanciu Vlad5-Jan-06 7:14
Stanciu Vlad5-Jan-06 7:14 
GeneralRe: Converting PDF to Text in C# Pin
curtKauf5-Jan-06 8:51
curtKauf5-Jan-06 8:51 
GeneralRe: Converting PDF to Text in C# Pin
Stanciu Vlad5-Jan-06 20:53
Stanciu Vlad5-Jan-06 20:53 
QuestionQueued Timers Pin
LiamD5-Jan-06 3:48
LiamD5-Jan-06 3:48 
AnswerRe: Queued Timers Pin
Guffa5-Jan-06 4:16
Guffa5-Jan-06 4:16 
GeneralRe: Queued Timers Pin
Dave Kreskowiak5-Jan-06 4:34
mveDave Kreskowiak5-Jan-06 4:34 
GeneralRe: Queued Timers Pin
LiamD5-Jan-06 21:57
LiamD5-Jan-06 21:57 
GeneralRe: Queued Timers Pin
Dave Kreskowiak6-Jan-06 2:54
mveDave Kreskowiak6-Jan-06 2:54 
GeneralRe: Queued Timers Pin
LiamD8-Jan-06 22:22
LiamD8-Jan-06 22:22 
GeneralRe: Queued Timers Pin
Dave Kreskowiak9-Jan-06 2:06
mveDave Kreskowiak9-Jan-06 2:06 
QuestionReflecting inherited interfaces Pin
Hans Ruck5-Jan-06 3:38
Hans Ruck5-Jan-06 3:38 
AnswerRe: Reflecting inherited interfaces Pin
leppie5-Jan-06 5:40
leppie5-Jan-06 5:40 

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.