3
Reply

How to convert XML attribute to Element using C#?

Tamer Khalil

Tamer Khalil

15 years ago
9.8k
I have a bulk XML file and I want to change the attributes of a certain node to an element. For instance
< book id=12 >
< author > Tamer < / author >
< / book >
I want it to be
< book >
< id > 12 < / id >
< author > Tamer < / author >
< / book >

Answers (3)