Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
QuestionExport data [modified] Pin
HexaDeveloper16-Jun-07 6:00
HexaDeveloper16-Jun-07 6:00 
QuestionVS2005 C# Resources Doesn't Pin
greybeard16-Jun-07 4:58
greybeard16-Jun-07 4:58 
AnswerRe: VS2005 C# Resources Doesn't Pin
Ed.Poore16-Jun-07 5:03
Ed.Poore16-Jun-07 5:03 
GeneralRe: VS2005 C# Resources Doesn't Pin
Paul Conrad16-Jun-07 8:47
professionalPaul Conrad16-Jun-07 8:47 
AnswerRe: VS2005 C# Resources Doesn't Pin
greybeard17-Jun-07 5:33
greybeard17-Jun-07 5:33 
QuestionCompletion of Mousewheel event Pin
pranu_1316-Jun-07 3:36
pranu_1316-Jun-07 3:36 
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 
I have a xml file that looks something like this

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="../../../../formatmall/dtd_dok_1_4.xsl" type="text/XSL"?>

<?Fm Condition Comment Red SINGLE_UNDERLINE show?>
<?Fm Condition Inserted Red CHANGEBAR show?>
<datamodul xmlns:xlink = "http://www.w3.org/1999/xlink" xmlns:num = "http://www2.mil.se/namespaces/num" xmlns:punkt = "http://www2.mil.se/namespaces/punkt" xmlns:ill = "http://www2.mil.se/namespaces/ill" xmlns:term = "http://www2.mil.se/namespaces/term" xmlns:tab = "http://www2.mil.se/namespaces/tab" xmlns:alt = "http://www2.mil.se/namespaces/alt" xmlns:obs = "http://www2.mil.se/namespaces/obs" xmlns:anm = "http://www2.mil.se/namespaces/anm" xmlns:kommentar = "http://www2.mil.se/namespaces/kommentar">
<niv1>
<rubrik>something</rubrik>
<niv2>
<rubrik>something else</rubrik>
<text>some text</text>
<niv3>
<rubrik>something more</rubrik>
<text>bla bla</text>
</niv3>
</niv2>
<niv2>
<rubrik>more headlines</rubrik>
<text>some simple text...</text>
<lista-num>
<lista-elem>
<lista-text>(1) list
</lista-text>
</lista-elem>
</lista-num>
</niv2>
</niv1>
</datamodul>

I've tried to rename some elements using XmlDocument() but with no success.
So if anyone can tell me how it is done, I would be glad.

Elements to rename:
niv1, niv2 and niv3

And ofcourse, save the file with changes.
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 
AnswerRe: How to rename elements in a xml file Pin
Ed.Poore16-Jun-07 5:05
Ed.Poore16-Jun-07 5:05 

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.