C# Append XML File
-
Good morning. I have the following simple XML file.
<?xml version="1.0" standalone="yes"?>
<SHRPT_SITE>
<RECORD>
<Name>Apps (doc)</Name>
<Address>http://unumtfsprod/sites/IServices/Apps/Forms/AllItems.aspx</Address>
</RECORD>
<RECORD>
<Name>Internet Services Architecture (arch)</Name>
<Address>http://teamspace/sites/iservices/architecture/default.aspx</Address>
</RECORD>
<RECORD>
<Name>iServices Customer Self Service (staff)</Name>
<Address>http://teamspace/sites/isgcrm/custselfsvc/default.aspx</Address>
</RECORD>
</SHRPT_SITE>I want the user to be able to click a (favorites) button and be able to add a site name and URL to the file. What would be the best code approach to accomplish this? Thank you, WHEELS
-
Good morning. I have the following simple XML file.
<?xml version="1.0" standalone="yes"?>
<SHRPT_SITE>
<RECORD>
<Name>Apps (doc)</Name>
<Address>http://unumtfsprod/sites/IServices/Apps/Forms/AllItems.aspx</Address>
</RECORD>
<RECORD>
<Name>Internet Services Architecture (arch)</Name>
<Address>http://teamspace/sites/iservices/architecture/default.aspx</Address>
</RECORD>
<RECORD>
<Name>iServices Customer Self Service (staff)</Name>
<Address>http://teamspace/sites/isgcrm/custselfsvc/default.aspx</Address>
</RECORD>
</SHRPT_SITE>I want the user to be able to click a (favorites) button and be able to add a site name and URL to the file. What would be the best code approach to accomplish this? Thank you, WHEELS
Use an XmlDocument to create a new record, and then append it to the shrpt_site node.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Use an XmlDocument to create a new record, and then append it to the shrpt_site node.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.