Enroll Now: Full-Stack Blazor Development Course
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
Training
Live
JOBS
MORE
CAREER
MEMBERS
XML
FOLLOW
Welcome to XML .NET section of C# Corner. In this section, you will find various XML .NET related source code samples, articles, tutorials, and tips.
Articles
(186)
Blogs
(51)
Resources
(23)
Videos
(0)
News
(1)
Learn
Destructuring And Event Handler In React
Responsive images in PWA
Sections
Let's Start
Start a discussion or ask a question
New
Top
Hot
Popular
Filter
Article
Blogs
Videos
News
Interview
Recent Post
XML Entities - Introduction
In this article, you will learn about XML Entities.
Sandeep Mishra
Sep 09, 2020
7.4k
Communicating With XML
In this article, you will learn how to communicate and process in XML.
Vijay K
May 31, 2020
6.3k
XML Writers
In this article, you will learn about the XML writer programming interface.
Vijay K
May 27, 2020
8.6k
XML And Database
In this article, you will learn about the XML and database modes.
Vijay K
May 27, 2020
6.9k
XMl Data Validation
In this article, you will learn about Validation types and processes in XML.
Vijay K
May 27, 2020
14.8k
What is the difference between Elements and Attributes in XML ?
Akash Varshney
Oct 04, 2015
3k
3k
What are the real life Applications of XML??
Trupti Rane
May 17, 2013
1.6k
1.6k
Which namespace is require to used XML in .NET?
shubham kumar
Jul 16, 2012
1.2k
1.2k
Explain the purpose of XSLT in XML?
shubham kumar
Jul 16, 2012
1.8k
1.8k
What are the different types of parser available to parse the XML document?
shubham kumar
Jul 16, 2012
2.2k
2.2k
How to save the XML file in "utf-8" format
I am trying to create an application in C# which will extract and save RSS feeds onto the D drive. I am using the following C# code to save the file on the disk rssReader = new XmlTextReader(FeedAddress.Text); rssDoc = new XmlDocument(); //Load the XML contents into a XMLDocument rssDoc.Load(rssReader); rssDoc.Save("D://text.xml"); Everything works wells and the file is saved in the "utf-8" format if the extension of the link is XML (e.g http://msdn.microsoft.com/rss.xml). The problem comes when I try to save a feed with .rss extension (e.g http://orangecounty.craigslist.org/apa/index.rss), instead of saving the feed in "utf-8" format it saves the feed in "ISO-8859-1" format. Moreover, when I try to save the feed with .rss extension using the Save As option of the Internet Explorer it saves the feed in "utf-8" format but when I use the C# code to save the same feed it saves it in the "ISO-8859-1" format. Is there any way to save the feed with .rss extension in "utf-8" format instead of "ISO-8859-1" format? I have even tried to save the XML file using the class System.Net.WebClient but it is also saving the file in ISO-8859-1 format. Thanks Deepak
Deepak Bhalla
May 27, 2012
6.3k
0
Read Top 10 XMLNode
Read numbers of XMLNode from an XML file.
Rahul Saxena
May 24, 2012
8.3k
0
Most Efficient Way to Read XML
Being a Microsoft technology developer, Reading XML is a very basic task, to read. Write or transfer data. Whether it be RSS feeds or Database data access, everywhere its all XML , There are a lot of ways to read XML using XPATH language XPATHNAVIGATOR, browsing through each nodes and finally extracting data. This is so complex and of course lot of coding. I have suggested an easy and efficient way to READ XML
Jaijo Paulose
Jan 08, 2010
14.4k
0
XAML Namespaces
The XML namespace declares sets three pieces if information.
Raj Kumar
Aug 13, 2008
12.1k
0
Read an xml file node by node
This fragment of code enables you to parse your xml file node by node
Bechir Bejaoui
Jul 14, 2008
15.4k
0
Leaderboard
47.9k
Vijay Prativadi
15
47.9k
6.7m
19.9k
Bechir Bejaoui
114
19.9k
6.7m
37.6k
Mike Gold
33
37.6k
25m
TRENDING UP
Reading and Writing XML in C#
Read XML File Using XMLReader in C#
Create XML in C#
Simple XML Parser in C#
Reading XML File using XmlDocument
Serializing and Deserializing XML String
Application Scheduler Service Using C#.Net And XML
Write XML in C#
Load XML File Into a DataGridView Using C#
Free Book: Programming XML with C#
Do you want to test your skills?
Take a Challenge
Angular 13
E-Book Downloads