How to generate XML file as follow, using XmlDocument.

A

Abhijit D. Babar

Hello,
I have to generate XML file as follow, using XmlDocument.


<Company>
< Employee EID=”111” Description=” xyz”>
<Dept DeptNo=”D10”>
<FirstName> Abhijit </FirstName>
<LastName> Babar </LastName>
</Dept>
<Dept DeptNo=”D20”>
<FirstName> Sahine </FirstName>
<LastName> Ghavane </LastName>
</Dept>
</Employee>

< Employee EID=”222” Description=” abc”>
<Dept DeptNo=”D10”>
<FirstName> Swapnil </FirstName>
<LastName> Chavan </LastName>
</Dept>
</Employee>
</Company>


I have to add Dept node at runtime and not fix number, Dept node added
will be between 1 to 10. Sometimes I will add 2 Dept nodes;
sometimes I will add 10 Dept nodes. New node will append at the end
position.
Also I have to search Employee node from its EID, and Delete
particular node from EID.
Also all Dept node will be display when we select Particular EID from
Employee Node

How can I do this. Please give me hint. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top