Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
How to remove namespace attribute from a xml file ?
Sajid P K
October 11, 2010
<?xml version="1.0" encoding="US-ASCII" ?>
from above XML. How we will remove attribute xmlns="http://rtf2xml.sourceforge.net/" ?
Sajid P K
Posted Date: October 12, 2010 Points: 5
Below code snippet is useful to remove the namespace from the xml file.
XmlDocument doc = new XmlDocument();
using (XmlTextReader reader= new XmlTextReader("C:\\Read.xml"))
reader.Namespaces = false;
I hope it's useful.
To post reply
Related Questions Related Questions
How to read multiple namespace URI from xml file in c#
Remove WhiteSpce from XML File
How to write to a text file in C#
How to copy a file from server to local system
Any alternative to using web.config file
upload image file in windows application
how to remove Zero
How to create .exe file
SWF file problem
bind xml file data into datatable
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend