N
needin4mation
Hi,
string filename = "Directions2.xml";
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("Directions2.xml"));
XmlElement root = doc.DocumentElement;
XmlNode oldLoc;
oldLoc =
root.SelectSingleNode("/NewDataSet/Locations[LocID='mainstreetD']");
XmlElement newLoc = doc.CreateElement("Locations");
newLoc.InnerXml="<LocID>" + txtName.Text + "</LocID>" +
"<Phone>" + txtPhone.Text + "</Phone>" +
"<Address>" + txtDirections.Text + "</Address>";
root.ReplaceChild(newLoc,oldLoc);
I am just trying to figure out how to make it so the user can enter an
ampersand & into the textbox for an update.
Thank you for any ideas.
string filename = "Directions2.xml";
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("Directions2.xml"));
XmlElement root = doc.DocumentElement;
XmlNode oldLoc;
oldLoc =
root.SelectSingleNode("/NewDataSet/Locations[LocID='mainstreetD']");
XmlElement newLoc = doc.CreateElement("Locations");
newLoc.InnerXml="<LocID>" + txtName.Text + "</LocID>" +
"<Phone>" + txtPhone.Text + "</Phone>" +
"<Address>" + txtDirections.Text + "</Address>";
root.ReplaceChild(newLoc,oldLoc);
I am just trying to figure out how to make it so the user can enter an
ampersand & into the textbox for an update.
Thank you for any ideas.