Hello i have a small question,

<?xml version="1.0"?>
     <db id="0" select="1">
     <db id="1" select="0">
     <db id="2" select="0">

and i have 1 dropdown box and 3 textfields

How can i add these values to the first drop box and with the selected one fill out the rest of the fields? (btw the XML file is still adjustable)

Im now testing in a Console:

XmlTextReader reader = new XmlTextReader("c:\\test.xml");
            while (reader.Read())
                if (reader.Name.CompareTo("username") == 0 || reader.Value != "")
                    switch (reader.NodeType)
                        case XmlNodeType.Element: // The node is an element.
                            Console.Write("<" + reader.Name);
                        case XmlNodeType.Text: //Display the text in each element.
                        case XmlNodeType.EndElement: //Display the end of the element.
                            Console.Write("</" + reader.Name);

But if i want to read something specific, im sure how to can some one explain? Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.