Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
QuestionWhat is wrong here.. Pin
ComCoderCsharp16-Jun-07 3:02
ComCoderCsharp16-Jun-07 3:02 
AnswerRe: What is wrong here.. Pin
Expert Coming16-Jun-07 4:33
Expert Coming16-Jun-07 4:33 
QuestionHow to create setup using InstallShield? Pin
Affan Toor16-Jun-07 2:03
Affan Toor16-Jun-07 2:03 
AnswerRe: How to create setup using InstallShield? Pin
Expert Coming16-Jun-07 4:31
Expert Coming16-Jun-07 4:31 
QuestionGet MotherBoared serial no. Pin
Senior Software Developer16-Jun-07 1:39
Senior Software Developer16-Jun-07 1:39 
AnswerRe: Get MotherBoared serial no. Pin
Vasudevan Deepak Kumar16-Jun-07 1:54
Vasudevan Deepak Kumar16-Jun-07 1:54 
QuestionHooking & Audio functions Pin
makkura16-Jun-07 1:37
makkura16-Jun-07 1:37 
AnswerRe: Hooking & Audio functions Pin
Expert Coming16-Jun-07 2:00
Expert Coming16-Jun-07 2:00 
GeneralRe: Hooking & Audio functions Pin
makkura16-Jun-07 2:19
makkura16-Jun-07 2:19 
GeneralRe: Hooking & Audio functions Pin
Expert Coming16-Jun-07 2:31
Expert Coming16-Jun-07 2:31 
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 

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.