How to Add new Xml Node
XML / XSL
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I have the following sample Data.xml <Company> <Department> <dept>Sales</dept> <dept>Tech</dept> </Department> <Branches> <Location>US</Location> <Location>IND</Location> </Branches> </Company> I want to add a new node say <dept>HR</dept> in the Department Section. Please help me,how we can do this using C#.
-
Hi, I have the following sample Data.xml <Company> <Department> <dept>Sales</dept> <dept>Tech</dept> </Department> <Branches> <Location>US</Location> <Location>IND</Location> </Branches> </Company> I want to add a new node say <dept>HR</dept> in the Department Section. Please help me,how we can do this using C#.
With an XmlDocument.