Click here to Skip to main content
11,644,286 members (70,226 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# XML
I have xml code.
<?xml version="1.0" encoding="utf-8"?>
      <ArrayOfString xmlns:xsi="" xmlns:xsd="">
        <string>Answer3 </string>
      <ArrayOfString xmlns:xsi="" xmlns:xsd="">

On form i have 4 elements (textbox's) . One - to question, and 3 to answes.

When i click on button program show me Question1 and hers answers. Clicking again- Question2 and hers answers.

doc = new XPathDocument(FILE_NAME);
            nav = doc.CreateNavigator();
            expr = nav.Compile("/Dictionary/item");
            iterator = nav.Select(expr);
            while (iterator.MoveNext())
                    XPathNavigator nav2 = iterator.Current.Clone();
                    nav2.SelectChildren("string", "");
                    textBox1.Text = nav2.TypedValue.ToString(); 

I try it. This xml not have attributes. What i need doing?
Posted 6-Sep-12 1:59am
LAKHANP22 at 14-Sep-12 15:37pm
not clear ....please explain what u want to do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 690
1 494
2 Sergey Alexandrovich Kryukov 429
3 Afzaal Ahmad Zeeshan 418
4 CPallini 336
0 OriginalGriff 925
1 DamithSL 636
2 Afzaal Ahmad Zeeshan 622
3 Sergey Alexandrovich Kryukov 548
4 CPallini 521

Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 6 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100