---
title: "What are the various methods provided by the dataset object to generate XML?"  
description: "What are the various methods provided by the dataset object to generate XML?"  
author: "Sumit Kesarwani"  
published: 2014-01-27  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1889/what-are-the-various-methods-provided-by-the-dataset-object-to-generate-xml  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What are the various methods provided by the dataset object to generate XML?

**ReadXML :** Read’s a XML document in to Dataset.

**GetXML :** This is a function which returns the string containing XML document.

**WriteXML :** This writes a XML data to disk.

## Answers

### Answer by Sumit Kesarwani

**ReadXML :** Read’s a XML document in to Dataset.

**GetXML :** This is a function which returns the string containing XML document.

**WriteXML :** This writes a XML data to disk.


---

Original Source: https://www.mindstick.com/interview/1889/what-are-the-various-methods-provided-by-the-dataset-object-to-generate-xml

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
