LoadSchema() private method

private LoadSchema ( XmlElement schemaRoot, DataSet ds ) : void
schemaRoot System.Xml.XmlElement
ds DataSet
return void
 internal void ReadXDRSchema(XmlReader reader)
 {
     XmlDocument document = new XmlDocument();
     XmlNode newChild = document.ReadNode(reader);
     document.AppendChild(newChild);
     XDRSchema schema = new XDRSchema(this, false);
     this.DataSetName = document.DocumentElement.LocalName;
     schema.LoadSchema((XmlElement) newChild, this);
 }
Ejemplo n.º 2
0
 internal void ReadXDRSchema(XmlReader reader) {
     XmlDocument xdoc = new XmlDocument(); // we may need this to infer the schema
     XmlNode schNode = xdoc.ReadNode(reader);
     xdoc.AppendChild(schNode);
     XDRSchema schema = new XDRSchema(this, false);
     this.DataSetName = xdoc.DocumentElement.LocalName;
     schema.LoadSchema((XmlElement)schNode, this);
 }