Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying an XML Document

Status
Not open for further replies.

dashen

Programmer
Jul 14, 2005
233
US
Code:
myXmlDoc.LoadXml(myReader("XML"))
                    myReader.Close()
                    myXmlDoc.SelectSingleNode("//dataobject/overridingclassification").InnerText = ddlOverride.SelectedValue.ToString
                    lblResult.Text = myXmlDoc.OuterXml.ToString()

I am trying to modify an XML Document with a drop down list in a project I am doing. Above is a snippet of the code I am running. It does not seem to be working. Any help will be appreciated. I have a July deadline. Thanks.
 
Oh one more thing, the tag "overridingclassification" is already in the document.
 
How exactly is it not working?

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
When I load the XML into the table that I am running off of, and look at the XML the overridingclassification tag has no entry in it. I am trying to figure out why that is the case.
 
Oh okay, so I just ran the system to a file and it did append the tag with the information I wanted. The problem is I was not able to push this to the database for some reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top