XML support featured in the DataSet class for reading and writingdata as XML

Discussion in 'XML' started by mike myers, Feb 16, 2014.

  1. mike myers

    mike myers Guest

    The following get methods are supported;


    The GetXml Method

    This method returns a string that contains an XML representation of the actual data that is stored in the DataSet, the syntax is public string GetXml();

    The GetXmlSchema Method

    This method returns the schema for an XML representation of the data stored in the DataSet, it returns the XML as a string so its more verbose than the WriteXmlSchema method to write XML to a file. The syntax is public string GetXmlSchema();

    InferXmlSchema Method

    This method applies XML schema to the DataSet by taking an XML document provided in a TextReader, XmlReader, Stream object or a specified disk file.
    The syntax is;

    public void InferXmlSchema(string,string[]);
    public void InferXmlSchema(TextReader,string[]);
    public void InferXmlSchema(Stream,Stream[]);
    public void InferXmlSchema(XmlReader,string[]);

    WriteXml Method

    This method writes the XML representation of the data in the DataSet object to a TextWriter object, an XmlWriter object, a Stream object or directly to a specified disk file. The syntax is;

    public void WriteXml(string);
    public void WriteXml(TextWriter);
    public void WriteXml(Stream);
    public void WriteXml(XmlWriter);

    WriteXmlSchema Method

    This method writes the XML schema of the DataSet to a TextWriter object, an XmlWriter object, a Stream object or directly to a specified disk file. The syntax is;

    public void WriteXmlSchema(string);
    public void WriteXmlSchema(TextWriter);
    public void WriteXmlSchema(Stream);
    public void WriteXmlSchema(XmlWriter);

    ReadXml Method

    This method reads the XML data (including a schema when present) into the DataSet from a TextReader, XmlReader, Stream object or directly to a specified disk file. The syntax is;

    public void ReadXml(string);
    public void ReadXml(TextReader);
    public void ReadXml(Stream);
    public void ReadXml(XmlReader);

    ReadXmlSchema Method

    This method reads the XML schema describing the contents of the DataSet to a TextReader, XmlReader, and Stream object or directly to a specified disk file.
    The syntax is;

    public void ReadXmlSchema(string);
    public void ReadXmlSchema(TextReader);
    public void ReadXmlSchema(Stream);
    public void ReadXmlSchema(XmlReader);

    http://www.liquid-technologies.com
    mike myers, Feb 16, 2014
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. melledge
    Replies:
    0
    Views:
    371
    melledge
    Oct 24, 2005
  2. makoto kuwata
    Replies:
    0
    Views:
    304
    makoto kuwata
    Oct 24, 2007
  3. makoto kuwata
    Replies:
    0
    Views:
    270
    makoto kuwata
    Feb 27, 2008
  4. kwatch
    Replies:
    0
    Views:
    300
    kwatch
    May 24, 2009
  5. Makoto Kuwata
    Replies:
    0
    Views:
    265
    Makoto Kuwata
    Jul 19, 2010
Loading...

Share This Page