Read an xml file as treeview as document

Sep 26 2017 10:01 AM

Hi,

I am Basharat and I am new in the Computer field becauase just one month ago i have started. I have given a task to read xml data in a document/ojbect way not as a text.for example

Input File: 
 <Config>
<Allgemein>
<!-- Name -->
<Labels label_3="Akos" label_2="Mahmood" label_1="Ashraf"/>
</Allgemein>
</Config>
 
 OutPut should be like this:
 
Structure                                         Value 
 
Config
     Allgemein
                 [comment]                       name
          Labels
                label_1                             Ashraf  
                label_2                             Mahmood
                label_3                            Akos
 
       

Answers (4)