i have one xml file like this
<SequenceFlow>
<FlowWriteLine> hiiii </FlowWriteLine>
</SequenceFlow>
I wanted to create another Xml file in silverlight with C#. XDocument is using in Silverlight. Each node in this Xml equal to another word like
SequenceFlow=WorkFlow,
FlowWriteLine=WriteLine
So when i create new Xml ,it will like this
<WorkFlow>
<WriteLine> hiii </WriteLine>
</WorkFlow>
So how can i create new Xml using Old one..pls help me …Advance Thanks..
You could simply set the node name based on the current node name.
In the sample below, I have used a dictionary for replacing the node names.
You can use any other logic that you have for replacing the node names as in mapping for original to new.
The above gives an output as