Mothra Posted April 30, 2005 Posted April 30, 2005 Is there a way to make the WriteXml method write the namespace correctly? In the Xml files I'm getting, it looks like this: ... xmlns="http://te... but it SHOULD look more like this: ... xmlns:ns="http://te... Is there a way to edit the xml file (from code) to correct this? Quote Being smarter than you look is always better than looking smarter than you are.
Machaira Posted May 6, 2005 Posted May 6, 2005 Sure. Load the xml file into a string and use the Replace method: String.Replace("xmlns","xmlns:ns") Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.