Hi all,
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 <item>
, <title>
, etc.) into a DropDownList
.
In a separate TextBox
it should count and show how many times a particular tag or element is present.
When a particular element is selected from the DropDownList
, the contents, descriptions including the sub-elements in that element should be displayed into a TextBox
.
I working with ASP.NET and C#.
................................................................................................................
Thanx a lot for all who have read and replied to my Answer. Iam using ASP.Net 3.5 only.
Precisly I would explain.........
Example of an XML File An XML File
<Persons>
Paxton Munich 29 Mike Orlando 33 Ella LA 13 Zach Munich 32 Ingrid Oslo 63
First, I browse and select this XML File.
Second, Load the Xml Tags into a DropDownlist. ie. the dropdownlist should contain Persons, Person, Name, City & Age.
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.
Eg:
<Person>
<Name>Paxton</Name>
<City>Munich</City>
<Age>29</Age>
Mike Orlando 33 Ella LA 13 Zach Munich 32 Ingrid Oslo 63
this way it should display for any other tags also, such as Name, City, Age, Persons.
In the same way for any other XML File that is selected.
My pblm here is, I couldn't load XML tags into a Dropdownlist.
Plz Help me