473,388 Members | 1,322 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to generate XML file as follow, using XmlDocument.

Hello,
I have to generate XML file as follow, using XmlDocument.
<Company>
< Employee EID=”111” Description=” xyz”>
<Dept DeptNo=”D10”>
<FirstNameAbhijit </FirstName>
<LastNameBabar </LastName>
</Dept>
<Dept DeptNo=”D20”>
<FirstNameSahine </FirstName>
<LastNameGhavane </LastName>
</Dept>
</Employee>

< Employee EID=”222” Description=” abc”>
<Dept DeptNo=”D10”>
<FirstNameSwapnil </FirstName>
<LastNameChavan </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

Jun 27 '08 #1
1 1525

Uzytkownik "Abhijit D. Babar" <ab*********@gmail.comnapisal w wiadomosci
news:bc**********************************@v26g2000 prm.googlegroups.com...
Hello,
I have to generate XML file as follow, using XmlDocument.
<Company>
< Employee EID=”111” Description=” xyz”>
<Dept DeptNo=”D10”>
<FirstNameAbhijit </FirstName>
<LastNameBabar </LastName>
</Dept>
<Dept DeptNo=”D20”>
<FirstNameSahine </FirstName>
<LastNameGhavane </LastName>
</Dept>
</Employee>

< Employee EID=”222” Description=” abc”>
<Dept DeptNo=”D10”>
<FirstNameSwapnil </FirstName>
<LastNameChavan </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
Show us your code
--
td
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tim:. | last post by:
Hi Can someone tell me how I generate a new XML file that I can then use with an XSLT file. I am trying to use an XML file generated from Microsoft Project or even better generate an XML file from...
4
by: SteveW | last post by:
Thanks to some good help from a previous post, I have been able to create well formed xml as part of a report logger app. However, I still have a small problem. When I add new xml to the log file,...
0
by: Abhijit D. Babar | last post by:
Hello, I have to generate XML file as follow, using XmlDocument. <Company> < Employee EID=”111” Description=” xyz”> <Dept DeptNo=”D10”> <FirstNameAbhijit </FirstName> <LastNameBabar...
1
by: Abhijit D. Babar | last post by:
Hello, I have to generate XML file as follow, using XmlDocument. <Company> < Employee EID=”111” Description=” xyz”> <Dept DeptNo=”D10”> <FirstNameAbhijit </FirstName> <LastNameBabar...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.