How to add only xmlns=“http://url.com” to an xml file in C#?

Rasia

New Member
I am having a horrible time trying to get this to work. I have an existing XML file, and I simply need to add xmlns="http://url.com/path_v1_0" to an existing tag (the url.com is arbitrary, I have something else I need to put in there instead). This needs to be in C#. The rest of the file needs to stay exactly as it is, just the xmlns piece needs to be added.Here is a snippet of what I have:\[code\]<?xml version="1.0" encoding="utf-8"?><content> <block id="root"> <identification>\[/code\]here is a snippet of what I need:\[code\]<?xml version="1.0" encoding="utf-8"?><content xmlns="http://url.com/path_v1_0"> <block id="root"> <identification>\[/code\]
 
Back
Top