Click here to Skip to main content
15,889,712 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is my xml code.
?xml version="1.0" encoding="UTF-8"?
    <Branches>
        <Branchname name ="Civil">
            <employee>
            <eid>c_101</eid>
          <ename>Monica</ename>
             <age>25</age>   
             <branchcode>c1</branchcode>
              <branchname>Civil</branchname>
               <salary>20000</salary>
               <here 4 more employees are same branch>
               </employee>
               </Branchname> 
       < Branchname name ="CSE">
            <employee>
            <eid>c_501</eid>
          <ename>Reddy</ename>
             <age>25</age>   
             <branchcode>c2</branchcode>
              <branchname>CSE</branchname>
               <salary>24000</salary>
               <here 4 more employees are same branch>
               </employee>
               </Branchname>
             <Branchname name ="EEE">
            <employee>
            <eid>e_301</eid>
          <ename>Durga</ename>
             <age>28</age>   
             <branchcode>e3</branchcode>
              <branchname>EEE</branchname>
               <salary>24000</salary>
               <here 4 more employees are same branch>
               </employee>
          </Branchname>
           <Branches> 


What I have tried:

In that above xml i have doubt in how to set branchname name="civil" and remaining branches.Please help me how to write the code for that. Anyone Could you please help me.
Posted
Updated 15-Mar-19 10:36am
v6
Comments
[no name] 15-Mar-19 11:30am    
Fix the "source" (of the data). And "branch name" looks to be duplicated and redundant; so your question is even more ambiguous.
RedDk 15-Mar-19 16:33pm    
What tools are at your disposal? I see no "Microsoft" in any of the above "xml" so credit to you for posting actual XML and not some flavor of xml produced by a third party software. I'm thinking that I could help you if you had Excel and Access installed.

To get to the stage where it would make sense to start thinking about using SQL to move things along.

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