Definition at line 5075 of file DataTable.cs.
5076 {
5078 long scopeId = DataCommonEventSource.Log.EnterScope(
"<ds.DataTable.ReadXml|INFO> {0}, denyResolving={1}",
ObjectID,
denyResolving);
5079 try
5080 {
5081 disposable = TypeLimiter.EnterRestrictedScope(
this);
5083 try
5084 {
5085 bool flag = false;
5089 int num = -1;
5092 if (reader == null)
5093 {
5094 return result;
5095 }
5098 {
5101 }
5102 else
5103 {
5106 }
5108 {
5110 }
5115 {
5117 return result;
5118 }
5120 {
5122 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5123 {
5125 {
5127 {
5130 }
5131 throw ExceptionBuilder.DataTableInferenceNotSupported();
5132 }
5137 }
5139 {
5143 }
5145 {
5149 }
5151 {
5153 {
5155 }
5156 else
5157 {
5159 }
5160 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
5161 }
5164 {
5166 for (
int i = 0;
i < attributeCount;
i++)
5167 {
5169 if (reader.
NamespaceURI.Equals(
"http://www.w3.org/2000/xmlns/"))
5170 {
5172 continue;
5173 }
5177 }
5178 }
5181 {
5182 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5183 {
5188 }
5190 {
5194 continue;
5195 }
5197 {
5200 continue;
5201 }
5203 {
5205 {
5207 }
5208 else
5209 {
5211 }
5212 throw ExceptionBuilder.DataSetUnsupportedSchema("http://www.w3.org/2001/XMLSchema");
5213 }
5214 if (reader.
LocalName ==
"diffgram" && reader.
NamespaceURI ==
"urn:schemas-microsoft-com:xml-diffgram-v1")
5215 {
5219 continue;
5220 }
5221 flag = true;
5223 {
5226 continue;
5227 }
5229 {
5231 }
5234 }
5238 {
5240 {
5242 return result;
5243 }
5244 throw ExceptionBuilder.DataTableInferenceNotSupported();
5245 }
5247 {
5249 }
5250 }
5252 return result;
5253 }
5254 finally
5255 {
5256 }
5257 }
5258 finally
5259 {
5261 DataCommonEventSource.Log.ExitScope(scopeId);
5262 }
5263 }
void RestoreEnforceConstraints(bool value)
bool IsEmptyXml(XmlReader reader)
void ReadXmlSchema(Stream? stream)
void ReadXmlDiffgram(XmlReader reader)
DataColumnCollection Columns
void RestoreConstraint(bool originalEnforceConstraint)
void ReadEndElement(XmlReader reader)
void ReadXDRSchema(XmlReader reader)
bool MoveToElement(XmlReader reader, int depth)
string? GetAttribute(string name)
bool MoveToAttribute(string name)
virtual bool HasAttributes
virtual XmlNodeType MoveToContent()
References System.Data.DataTable._enforceConstraints, System.Xml.XmlReader.AttributeCount, System.Data.DataTable.Columns, System.Data.InternalDataCollectionBase.Count, System.Data.ExceptionBuilder.DataSetUnsupportedSchema(), System.Data.ExceptionBuilder.DataTableInferenceNotSupported(), System.Xml.XmlReader.Depth, System.Runtime.Serialization.Dictionary, System.Data.DataSet.EnforceConstraints, System.Data.DataTable.EnforceConstraints, System.Data.TypeLimiter.EnterRestrictedScope(), System.Xml.XmlReader.GetAttribute(), System.Xml.XmlReader.HasAttributes, System.Xml.XmlReader.IsEmptyElement, System.Data.DataTable.IsEmptyXml(), System.Xml.XmlReader.LocalName, System.Data.DataCommonEventSource.Log, System.Xml.XmlReader.MoveToAttribute(), System.Xml.XmlReader.MoveToContent(), System.Data.DataTable.MoveToElement(), System.Xml.XmlReader.Name, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Data.DataTable.ObjectID, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.Read(), System.Data.DataTable.ReadEndElement(), System.Data.DataTable.ReadXDRSchema(), System.Data.DataTable.ReadXmlDiffgram(), System.Data.DataTable.ReadXmlSchema(), System.Data.DataTable.RestoreConstraint(), and System.Data.DataSet.RestoreEnforceConstraints().