Gets or sets the XML schema of the DataSet.
[Visual Basic] Public Property XmlSchema As String [C#] public string XmlSchema {get; set;} [C++] public: __property String* get_XmlSchema(); public: __property void set_XmlSchema(String*); [JScript] public function get XmlSchema() : String; public function set XmlSchema(String);
The XML schema for the DataSet.
Te XML schema defines the tags for the data found in an XML document. The XmlSchema property returns only the tags, and not the data for the DataSet. To return the data, use the XmlData property. Use the Xml property to return both schema and data together.
The following example prints out the XmlSchema and XmlData for a DataSet.
[Visual Basic]
Private Sub PrintXML() ' Presuming a DataGrid control is displaying tables from a DataSet. Dim myDS As DataSet myDS = DataGrid1.DataSource ' Print XmlSchema and XmlData. Console.WriteLine(myDS.XmlSchema) Console.WriteLine(myDS.XmlData) End Sub
DataSet Class | DataSet Members | System.Data Namespace | XmlData