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

C#

 
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 
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 

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.