Note that there are some explanatory texts on larger screens.

plurals
  1. POLoad all XML file Tags into a DropDownList
    primarykey
    data
    text
    <p>I am a beginner and I want to select an XML file and load it's elements (i.e., a file with tags such as <code>&lt;item&gt;</code>, <code>&lt;title&gt;</code>, etc.) into a <code>DropDownList</code>. </p> <p>In a separate <code>TextBox</code> it should count and show how many times a particular tag or element is present.</p> <p>When a particular element is selected from the <code>DropDownList</code>, the contents, descriptions including the sub-elements in that element should be displayed into a <code>TextBox</code>.</p> <p>I working with ASP.NET and C#.</p> <p>................................................................................................................</p> <p>Thanx a lot for all who have read and replied to my Answer. Iam using ASP.Net 3.5 only.</p> <p>Precisly I would explain.........</p> <p>Example of an XML File <strong>An XML File</strong></p> <pre><code> &lt;Persons&gt; </code></pre> <p> Paxton Munich 29 Mike Orlando 33 Ella LA 13 Zach Munich 32 Ingrid Oslo 63 </p> <p>First, I browse and select this XML File.</p> <p>Second, Load the Xml Tags into a DropDownlist. ie. the dropdownlist should contain <em>Persons, Person, Name, City &amp; Age.</em></p> <pre><code> Now on selecting say **Person** the textbox should Display Message as "The XML File has: 5 Person tags" and SHould display all the Contents under Person tags including its subtags. </code></pre> <p><strong>Eg:</strong> </p> <pre><code>&lt;Person&gt; &lt;Name&gt;Paxton&lt;/Name&gt; &lt;City&gt;Munich&lt;/City&gt; &lt;Age&gt;29&lt;/Age&gt; </code></pre> <p> Mike Orlando 33 Ella LA 13 Zach Munich 32 Ingrid Oslo 63 </p> <p>this way it should display for any other tags also, such as Name, City, Age, Persons.</p> <pre><code> In the same way for any other XML File that is selected. </code></pre> <p>My pblm here is, I couldn't load XML <strong>tags</strong> into a Dropdownlist.</p> <p>Plz Help me</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload