10 TIPs - To Become a Good Developer/Programmer
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)
Forums
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
8.3k
Communicating With XML
In this article, you will learn how to communicate and process in XML.
Vijay K
May 31, 2020
6.7k
XML Writers
In this article, you will learn about the XML writer programming interface.
Vijay K
May 27, 2020
9.2k
XML And Database
In this article, you will learn about the XML and database modes.
Vijay K
May 27, 2020
7.2k
XMl Data Validation
In this article, you will learn about Validation types and processes in XML.
Vijay K
May 27, 2020
16.5k
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.6k
0
Read Top 10 XMLNode
Read numbers of XMLNode from an XML file.
Rahul Saxena
May 24, 2012
8.5k
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.7k
0
XAML Namespaces
The XML namespace declares sets three pieces if information.
Raj Kumar
Aug 13, 2008
12.3k
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.6k
0
When constructing an XML DTD, how do you create an external entity reference in an attribute value?
Bhasker Das
Jul 14, 2006
7.7k
7.7k
How would you build a search engine for large volumes of XML data?
Mahesh Chand
Jul 14, 2006
8k
8k
What is DOM and how does it relate to XML?
Ravi Kumar
Jul 14, 2006
8.1k
8.1k
What is SOAP and how does it relate to XML?
Ravi Kumar
Jul 14, 2006
9.3k
9.3k
when constructing an XML DTD, how do you create an external entity reference in an attribute value?
Bhasker Das
Jul 14, 2006
6.7k
6.7k
Leaderboard
344.9k
Mahesh Chand
1
344.9k
213.4m
47.9k
Vijay Prativadi
17
47.9k
6.8m
19.9k
Bechir Bejaoui
117
19.9k
6.7m
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#
Crystal Reports Tutorials
Challenge yourself
HTML
E-Book Download
Get Certified
Java Developer
Ask a question
*
Select a Category
.NET
.NET Core
.NET Standard
Active Directory
ADO.NET
Agile Development
AJAX
Alexa Skills
Algorithms in C#
Android
Angular
Architecture
ArcObject
Artificial Intelligence
ASP.NET
ASP.NET Core
Augmented Reality
Aurelia
AWS
Azure
Backbonejs
Big Data
BizTalk Server
Blazor
Blockchain
Bootstrap
Bot Framework
Business
C#
C# Corner
C# Strings
C, C++, MFC
Career Advice
Careers and Jobs
Chapters
Cloud
COBOL.NET
Coding Best Practices
Cognitive Services
COM Interop
Compact Framework
Cortana Development
Cosmos DB
Cryptocurrency
Cryptography
Crystal Reports
CSS
Current Affairs
Custom Controls
Cyber Security
Data Mining
Data Science
Databases & DBA
Design Patterns & Practices
DevOps
DirectX
Dynamics CRM
Enterprise Development
Entity Framework
Error Zone
Exception Handling
Expression Studio
F#
Files, Directory, IO
Flutter
Games Programming
GDI+
GO
Google Cloud
Google Development
Graphics Design
Graphite Studio
Hardware
Health & Wellness
Hiring and Recruitment
HoloLens
How do I
HTML 5
Internet & Web
Internet of Things
Ionic
Java
Java and .NET
JavaScript
JQuery
JSON
JSP
Knockout
Kotlin
Leadership
Learn .NET
Learn iOS Programming
LightSwitch
LINQ
Machine Learning
Metaverse
Microsoft 365
Microsoft Office
Microsoft Phone
Microsoft Teams
Mobile Development
MongoDB
MySQL
NetBeans
Networking
NFT
NoCode LowCode
Node.js
Office Development
OOP/OOD
Open Source
Operating Systems
Oracle
Outsourcing
Philosophy
PHP
PostgreSQL
Power Apps
Power Automate
Power BI
Printing in C#
Products
Progressive Web Apps
Project Management
Public Speaking
Python
Q#
QlikView
Quantum Computing
R
React
React Native
Reports using C#
Robotics & Hardware
RPA
Ruby on Rails
Salesforce
Security
Servers
SharePoint
SignalR
Smart Devices
Software Testing
Solidity
SQL
SQL Server
Startups
Stratis Blockchain
Swift
Threading
Tools
TypeScript
Unity
UWP
Visual Basic .NET
Visual Studio
Vue.js
WCF
Wearables
Web Design
Web Development
Web Services
Web3
Windows
Windows Controls
Windows Forms
Windows PowerShell
Windows Services
Workflow Foundation
WPF
Xamarin
XAML
XML
XNA
XSharp
Upload Source Code:
Select only zip and rar file.