Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hooking & Audio functions Pin
makkura16-Jun-07 2:39
makkura16-Jun-07 2:39 
QuestionHow to rename elements in a xml file Pin
Phrone16-Jun-07 1:35
Phrone16-Jun-07 1:35 
AnswerRe: How to rename elements in a xml file Pin
Affan Toor16-Jun-07 2:24
Affan Toor16-Jun-07 2:24 
GeneralRe: How to rename elements in a xml file Pin
Phrone16-Jun-07 2:35
Phrone16-Jun-07 2:35 
GeneralRe: How to rename elements in a xml file Pin
DavidNohejl16-Jun-07 2:41
DavidNohejl16-Jun-07 2:41 
GeneralRe: How to rename elements in a xml file Pin
Phrone17-Jun-07 5:19
Phrone17-Jun-07 5:19 
GeneralRe: How to rename elements in a xml file Pin
Affan Toor16-Jun-07 3:33
Affan Toor16-Jun-07 3:33 
GeneralRe: How to rename elements in a xml file Pin
Phrone17-Jun-07 5:13
Phrone17-Jun-07 5:13 
This code gives me errors.
Error 1 'System.Xml.XmlDocument.DocumentElement' is a 'property' but is used like a 'method' U:\ModXML\ModXML\GUI.cs 265 43 ModXML
Error 2 'System.Xml.XmlNode' does not contain a definition for 'GetElementByTagName' U:\ModXML\ModXML\GUI.cs 266 49 ModXML

Affan Toor wrote:
try doing this:

string nodeData = "";
XmlDocument xmlDoc = new XmlDocument();
XmlNode root = xmlDoc.DocumentElement();
XmlNodeList nodeList = root.GetElementByTagName("nav1");
XmlNode node = nodeList[0];

if(node!=null)
{
nodeData = node.InnerXml;
root.RemoveChild(node);

//Create new node with modified name

XmlElement newNode = xmlDoc.CreateElement("New nav1");
newNode.InnerXml = nodeData;
root.AppendChild(newNode);
}

hope that helps...

AnswerRe: How to rename elements in a xml file Pin
Ed.Poore16-Jun-07 5:05
Ed.Poore16-Jun-07 5:05 
GeneralRe: How to rename elements in a xml file Pin
Phrone17-Jun-07 5:15
Phrone17-Jun-07 5:15 
GeneralRe: How to rename elements in a xml file Pin
Ed.Poore17-Jun-07 10:11
Ed.Poore17-Jun-07 10:11 
QuestionDistributed Applications Pin
hosam Taji16-Jun-07 0:10
hosam Taji16-Jun-07 0:10 
AnswerRe: Distributed Applications Pin
Colin Angus Mackay16-Jun-07 0:37
Colin Angus Mackay16-Jun-07 0:37 
GeneralRe: Distributed Applications Pin
hosam Taji16-Jun-07 1:14
hosam Taji16-Jun-07 1:14 
GeneralRe: Distributed Applications Pin
Expert Coming16-Jun-07 2:01
Expert Coming16-Jun-07 2:01 
QuestionWhat library to use for Video and Text in real time. Pin
Manaxter16-Jun-07 0:02
Manaxter16-Jun-07 0:02 
AnswerRe: What library to use for Video and Text in real time. Pin
Ed.Poore16-Jun-07 5:08
Ed.Poore16-Jun-07 5:08 
GeneralRe: What library to use for Video and Text in real time. Pin
Manaxter16-Jun-07 12:24
Manaxter16-Jun-07 12:24 
GeneralRe: What library to use for Video and Text in real time. Pin
Ed.Poore16-Jun-07 21:40
Ed.Poore16-Jun-07 21:40 
QuestionRichTextBox problem Pin
cygnusx198615-Jun-07 22:56
cygnusx198615-Jun-07 22:56 
AnswerRe: RichTextBox problem Pin
giddy_guitarist16-Jun-07 7:56
giddy_guitarist16-Jun-07 7:56 
AnswerRe: RichTextBox problem Pin
Hesham Yassin20-Jun-07 0:24
Hesham Yassin20-Jun-07 0:24 
QuestionHow To Merge Columns in DataGridView ..? Pin
Pankaj - Joshi15-Jun-07 22:46
Pankaj - Joshi15-Jun-07 22:46 
AnswerRe: How To Merge Columns in DataGridView ..? [modified] Pin
mashisuke15-Jun-07 23:35
mashisuke15-Jun-07 23:35 
GeneralRe: How To Merge Columns in DataGridView ..? Pin
Pankaj - Joshi15-Jun-07 23:50
Pankaj - Joshi15-Jun-07 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.