Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have this xml file



<?xml version="1.0" encoding="utf-8"?>
<CRM>
<Unit ID="1" Name="آذربایجان شرقی">
<city ID="1">آذرشهر </city>
<city ID="2">اسکو </city>
<city ID="3">اهر </city>
<city ID="12">کلیبر </city>
<city ID="13">مراغه </city>
<city ID="14">مرند </city>
<city ID="15">ملکان </city>
<city ID="16">ملکان </city>
<city ID="17">میانه </city>
<city ID="18">ورزقان </city>
<city ID="19">هریس </city>
<city ID="20">هشترود</city>
</Unit>

<Unit ID="2" Name="آذربایجان غربی">
<city ID="1">ارومیه </city>
<city ID="2">اشنویه </city>
<city ID="3">بوکان </city>
<city ID="4">پیرانشهر </city>
<city ID="5">تکاب </city>
<city ID="6">چالدران </city>
</Unit>

<Unit ID="3" Name="اردبیل">
<city ID="1">اردبیل </city>
<city ID="2">بیله‌سوار </city>
</Unit>

<Unit ID="4" Name="اصفهان">
<city ID="1">آران و بیدگل</city>
<city ID="2">اردستان </city>
<city ID="3">اصفهان </city>
<city ID="4">برخوار و میمه</city>
<city ID="5">تیران و کرون</city>
<city ID="6">چادگان </city>
<city ID="7">خمینی‌شهر </city>
<city ID="8">خوانسار </city>
<city ID="9">سمیرم </city>
<city ID="10">شهرضا"</city>
<city ID="11">سمیرم سفلی"</city>
<city ID="12">فریدن"</city>
</Unit>
</CRM>


I'm showing list name unit in html.dropdownlist
what should i do?
Posted
Updated 18-Jun-11 21:20pm
v2
Comments
Monjurul Habib 19-Jun-11 4:54am    
what you want to do? clarify your question..we need more detail.
Sergey Alexandrovich Kryukov 19-Jun-11 12:58pm    
Show where?! Tag it! Forms, WPF, ASP.NET, what?!
--SA

1 solution

Your XML shows two levels of hierarchy. It means you should use tree view instead of list. Why this is a problem?

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900