abdujalil  chuliev

abdujalil chuliev

  • NA
  • 400
  • 41.2k

Best way to bind XML to Asp.Net

Jun 17 2017 12:55 AM
I'm a junior asp.net developer. I have got many XML files which consist of many attributes, child elements and so on. I want to preview those data. What way is the best to display or bind those XMLs to Asp.Net GridView control or the other controls. Please show me with some c# asp.net codes. Below is one of my XML files:
 
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <application propertytype="databs" applid="i20170001" schemaname="dsatabsschema" maxid="182" editname="????" editdt="04-04-2017 10:30:34">  
  3.   <b210_appl_number fid="i20170001_102">20170001</b210_appl_number>  
  4.   <b22_date_filing fid="i20170001_103">02.02.2017</b22_date_filing>  
  5.   <b11_number_reg countrycode="US" fid="i20170001_104">00344</b11_number_reg>  
  6.   <b12_number_reg countrycode="" fid="i20170001_105">  
  7.   </b12_number_reg>  
  8.   <b15_date_reg fid="i20170001_106">07.03.2017</b15_date_reg>  
  9.   <b18_expir_date fid="i20170001_107">  
  10.   </b18_expir_date>  
  11.   <b40_public_date fid="i20170001_108">28.04.2017</b40_public_date>  
  12.   <bulletin_no fid="i20170001_109">№4</bulletin_no>  
  13.   <b54_prev fid="i20170001_110">  
  14.   </b54_prev>  
  15.   <b54_titles fid="i20170001_111">  
  16.     <b54_title lang="english" fid="i20170001_112">  
  17.       <b54_name fid="i20170001_113">botanik-geograf flora</b54_name>  
  18.       <b54_mult_name fid="i20170001_114">  
  19.       </b54_mult_name>  
  20.       <b54_date_fin fid="i20170001_115">25.12.2016</b54_date_fin>  
  21.       <b54_date_fpub fid="i20170001_116">  
  22.       </b54_date_fpub>  
  23.       <b54_place_fpub fid="i20170001_117">  
  24.       </b54_place_fpub>  
  25.       <b57_desc fid="i20170001_118">Data Base Description</b57_desc>  
  26.       <b57_work_area fid="i20170001_119">  
  27.       </b57_work_area>  
  28.       <b57_type_computer fid="i20170001_120">  
  29.         Pentium IV  
  30.       </b57_type_computer>  
  31.       <b57_language fid="i20170001_121">  
  32.         Microsoft Access 2013  
  33.       </b57_language>  
  34.       <b57_OS fid="i20170001_122">  
  35.         Windows XP  
  36.       </b57_OS>  
  37.       <b57_data_all fid="i20170001_123">  
  38.         Microsoft Access 2013  
  39.       </b57_data_all>  
  40.     </b54_title>  
  41.     <b54_title lang="russian" fid="i20170001_124">  
  42.       <b54_name fid="i20170001_125">  
  43.         ????? ???????? ??????  
  44.       </b54_name>  
  45.       <b54_mult_name fid="i20170001_126">  
  46.       </b54_mult_name>  
  47.       <b54_date_fin fid="i20170001_127">25.12.2016</b54_date_fin>  
  48.       <b54_date_fpub fid="i20170001_128">  
  49.       </b54_date_fpub>  
  50.       <b54_place_fpub fid="i20170001_129">  
  51.       </b54_place_fpub>  
  52.       <b57_desc fid="i20170001_130">DB in russian</b57_desc>  
  53.       <b57_work_area fid="i20170001_131">DB working area</b57_work_area>  
  54.       <b57_type_computer fid="i20170001_132">  
  55.         Pentium IV ? ????  
  56.       </b57_type_computer>  
  57.       <b57_language fid="i20170001_133">  
  58.         Microsoft Access 2013  
  59.       </b57_language>  
  60.       <b57_OS fid="i20170001_134">  
  61.         Windows XP  ? ????  
  62.       </b57_OS>  
  63.       <b57_data_all fid="i20170001_135">  
  64.         Microsoft Access 2013  
  65.       </b57_data_all>  
  66.     </b54_title>  
  67.   </b54_titles>  
  68.   <applicants fid="i20170001_136">  
  69.     <applicant persontype="GOVERMENT" countrycode="US" base="" fid="i20170001_137">  
  70.       <b71info_applicant fid="i20170001_138">  
  71.       </b71info_applicant>  
  72.       <b71nameaddr_lgs fid="i20170001_139">  
  73.         <b71nameaddr lang="english" alias="1" fid="i20170001_140">  
  74.           <b71name_applicant fid="i20170001_141">genofond institut</b71name_applicant>  
  75.           <b71addr_applicant fid="i20170001_142">city, street, house</b71addr_applicant>  
  76.         </b71nameaddr>  
  77.         <b71nameaddr lang="russian" alias="1" fid="i20170001_143">  
  78.           <b71name_applicant fid="i20170001_144">???????? ????????? ????????????? ? ????????? ???? ???????? ???? ?????????? </b71name_applicant>  
  79.           <b71addr_applicant fid="i20170001_145">  
  80.           </b71addr_applicant>  
  81.         </b71nameaddr>  
  82.       </b71nameaddr_lgs>  
  83.     </applicant>  
  84.   </applicants>  
  85.   <authors fid="i20170001_146">  
  86.     <author persontype="PRIVATE" countrycode="US" birthday="" fid="i20170001_147">  
  87.       <b72info_author degree="" position="??????? ??????? ?????????" fid="i20170001_148">???????? ????????? ????????????? ? ????????? ???? ?? </b72info_author>  
  88.       <b72nameaddr_lgs fid="i20170001_149">  
  89.         <b72nameaddr lang="english" alias="1" fid="i20170001_150">  
  90.           <b72name_author fid="i20170001_151">Jack Smith</b72name_author>  
  91.           <b72addr_author fid="i20170001_152">city, street, house</b72addr_author>  
  92.         </b72nameaddr>  
  93.         <b72nameaddr lang="russian" alias="1" fid="i20170001_153">  
  94.           <b72name_author fid="i20170001_154">Jack Smith</b72name_author>  
  95.           <b72addr_author fid="i20170001_155">  
  96.           </b72addr_author>  
  97.         </b72nameaddr>  
  98.       </b72nameaddr_lgs>  
  99.     </author>  
  100.     <author persontype="PRIVATE" countrycode="US" birthday="" fid="i20170001_156">  
  101.       <b72info_author degree="" position="??????? ??????? ?????????" fid="i20170001_157">  
  102.       </b72info_author>  
  103.       <b72nameaddr_lgs fid="i20170001_158">  
  104.         <b72nameaddr lang="english" alias="1" fid="i20170001_159">  
  105.           <b72name_author fid="i20170001_160">Tom Clark</b72name_author>  
  106.           <b72addr_author fid="i20170001_161">city, street, house</b72addr_author>  
  107.         </b72nameaddr>  
  108.         <b72nameaddr lang="russian" alias="1" fid="i20170001_162">  
  109.           <b72name_author fid="i20170001_163">Tom Clark</b72name_author>  
  110.           <b72addr_author fid="i20170001_164">  
  111.           </b72addr_author>  
  112.         </b72nameaddr>  
  113.       </b72nameaddr_lgs>  
  114.     </author>  
  115.   </authors>  
  116.   <b75s fid="i20170001_165">  
  117.   </b75s>  
  118.   <owner_changes fid="i20170001_166">  
  119.   </owner_changes>  
  120.   <attorney fid="i20170001_167">  
  121.   </attorney>  
  122.   <mailaddr fid="i20170001_168">  
  123.     <b75_mailaddr lang="russian" fid="i20170001_169">some mail info</b75_mailaddr>  
  124.   </mailaddr>  
  125.   <conclusion fid="i20170001_170" conclusiontype="POSITIVE" date_conclusion="03.03.2017" date_sending="03.03.2017">some names </conclusion>  
  126.   <recalls fid="i20170001_171">  
  127.   </recalls>  
  128.   <annulments fid="i20170001_172">  
  129.   </annulments>  
  130.   <inquiries fid="i20170001_173">  
  131.   </inquiries>  
  132.   <notifications fid="i20170001_174">  
  133.   </notifications>  
  134.   <licenses fid="i20170001_175">  
  135.   </licenses>  
  136.   <fees fid="i20170001_176">  
  137.     <fee feecurr="" fid="i20170001_177" feecurrency="USS">  
  138.       <fee_type fid="i20170001_178">?? ??????????????? ????</fee_type>  
  139.       <fee_doc fid="i20170001_179">?.?.</fee_doc>  
  140.       <fee_date fid="i20170001_180">27.01.2017</fee_date>  
  141.       <fee_sum fid="i20170001_181">149775</fee_sum>  
  142.     </fee>  
  143.   </fees>  
  144.   <appeals fid="i20170001_182">  
  145.   </appeals>  
  146. </application>  
 

Answers (1)