116 references to XmlReadMode
netstandard (1)
netstandard.cs (1)
608
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
XmlReadMode
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
263
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
XmlReadMode
))]
System.Data.Common (114)
System\Data\DataSet.cs (69)
501
ReadXml(new XmlTextReader(new StringReader(strData)),
XmlReadMode
.DiffGram);
1605
InferSchema(xdoc, nsArray,
XmlReadMode
.InferSchema);
1773
InferSchema(xdoc, null,
XmlReadMode
.Auto);
2066
public
XmlReadMode
ReadXml(XmlReader? reader) => ReadXml(reader, false);
2070
internal
XmlReadMode
ReadXml(XmlReader? reader, bool denyResolving)
2085
XmlReadMode
ret =
XmlReadMode
.Auto;
2125
return
XmlReadMode
.DiffGram;
2133
return
XmlReadMode
.ReadSchema; //since the top level element is a schema return
2140
return
XmlReadMode
.ReadSchema; //since the top level element is a schema return
2179
ret =
XmlReadMode
.DiffGram; // continue reading for multiple schemas
2211
ret =
XmlReadMode
.DiffGram;
2238
ret =
XmlReadMode
.ReadSchema;
2242
ret =
XmlReadMode
.IgnoreSchema;
2311
InferSchema(xdoc, null,
XmlReadMode
.Auto);
2312
ret =
XmlReadMode
.InferSchema;
2345
public
XmlReadMode
ReadXml(Stream? stream)
2349
return
XmlReadMode
.Auto;
2362
public
XmlReadMode
ReadXml(TextReader? reader)
2366
return
XmlReadMode
.Auto;
2379
public
XmlReadMode
ReadXml(string fileName)
2398
internal void InferSchema(XmlDocument xdoc, string[]? excludedNamespaces,
XmlReadMode
mode)
2412
infer.TypeInference = (mode ==
XmlReadMode
.InferTypedSchema) ?
2583
public
XmlReadMode
ReadXml(XmlReader? reader,
XmlReadMode
mode) => ReadXml(reader, mode, false);
2587
internal
XmlReadMode
ReadXml(XmlReader? reader,
XmlReadMode
mode, bool denyResolving)
2594
XmlReadMode
ret = mode;
2601
if (mode ==
XmlReadMode
.Auto)
2625
if ((mode !=
XmlReadMode
.Fragment) && (reader.NodeType == XmlNodeType.Element))
2636
if (mode ==
XmlReadMode
.Fragment)
2646
if ((mode ==
XmlReadMode
.DiffGram) || (mode ==
XmlReadMode
.IgnoreSchema))
2662
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema) &&
2663
(mode !=
XmlReadMode
.InferTypedSchema))
2677
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema) &&
2678
(mode !=
XmlReadMode
.InferTypedSchema))
2722
if (!fSchemaFound && !fDataFound && (mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema) &&
2723
(mode !=
XmlReadMode
.InferTypedSchema))
2739
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema) &&
2740
(mode !=
XmlReadMode
.InferTypedSchema))
2754
if ((mode ==
XmlReadMode
.DiffGram) || (mode ==
XmlReadMode
.IgnoreSchema))
2757
ret =
XmlReadMode
.DiffGram;
2769
if (mode ==
XmlReadMode
.DiffGram)
2778
if (mode ==
XmlReadMode
.InferSchema || mode ==
XmlReadMode
.InferTypedSchema)
2785
xmlload ??= new XmlDataLoader(this, fIsXdr, topNode, mode ==
XmlReadMode
.IgnoreSchema);
2795
xmlload ??= new XmlDataLoader(this, fIsXdr, mode ==
XmlReadMode
.IgnoreSchema);
2797
if (mode ==
XmlReadMode
.DiffGram)
2804
if (mode ==
XmlReadMode
.InferSchema || mode ==
XmlReadMode
.InferTypedSchema)
2807
ret =
XmlReadMode
.InferSchema;
2838
public
XmlReadMode
ReadXml(Stream? stream,
XmlReadMode
mode)
2842
return
XmlReadMode
.Auto;
2845
XmlTextReader reader = (mode ==
XmlReadMode
.Fragment) ? new XmlTextReader(stream, XmlNodeType.Element, null) : new XmlTextReader(stream);
2853
public
XmlReadMode
ReadXml(TextReader? reader,
XmlReadMode
mode)
2857
return
XmlReadMode
.Auto;
2860
XmlTextReader xmlreader = (mode ==
XmlReadMode
.Fragment) ? new XmlTextReader(reader.ReadToEnd(), XmlNodeType.Element, null) : new XmlTextReader(reader);
2868
public
XmlReadMode
ReadXml(string fileName,
XmlReadMode
mode)
2871
if (mode ==
XmlReadMode
.Fragment)
3480
ReadXml(reader,
XmlReadMode
.DiffGram, true);
System\Data\DataTable.cs (45)
339
ds.ReadXml(new XmlTextReader(new StringReader(strData)),
XmlReadMode
.DiffGram);
5642
public
XmlReadMode
ReadXml(Stream? stream)
5646
return
XmlReadMode
.Auto;
5659
public
XmlReadMode
ReadXml(TextReader? reader)
5663
return
XmlReadMode
.Auto;
5676
public
XmlReadMode
ReadXml(string fileName)
5695
public
XmlReadMode
ReadXml(XmlReader? reader) => ReadXml(reader, false);
5734
internal
XmlReadMode
ReadXml(XmlReader? reader, bool denyResolving)
5749
XmlReadMode
ret =
XmlReadMode
.Auto;
5800
return
XmlReadMode
.DiffGram;
5809
return
XmlReadMode
.DiffGram;
5819
return
XmlReadMode
.ReadSchema; //since the top level element is a schema return
5827
return
XmlReadMode
.ReadSchema; //since the top level element is a schema return
5876
return
XmlReadMode
.DiffGram;
5917
ret =
XmlReadMode
.DiffGram;
5933
ret = fSchemaFound ?
XmlReadMode
.ReadSchema :
XmlReadMode
.IgnoreSchema;
5978
internal
XmlReadMode
ReadXml(XmlReader? reader,
XmlReadMode
mode, bool denyResolving)
5989
XmlReadMode
ret = mode;
6016
if ((mode !=
XmlReadMode
.Fragment) && (reader.NodeType == XmlNodeType.Element))
6036
if (mode ==
XmlReadMode
.Fragment)
6046
if ((mode ==
XmlReadMode
.DiffGram) || (mode ==
XmlReadMode
.IgnoreSchema))
6053
return
XmlReadMode
.DiffGram;
6072
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema))
6087
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema))
6143
if (!fSchemaFound && !fDataFound && (mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema))
6159
if ((mode !=
XmlReadMode
.IgnoreSchema) && (mode !=
XmlReadMode
.InferSchema))
6173
if ((mode ==
XmlReadMode
.DiffGram) || (mode ==
XmlReadMode
.IgnoreSchema))
6180
return
XmlReadMode
.DiffGram;
6185
ret =
XmlReadMode
.DiffGram;
6208
if (mode ==
XmlReadMode
.DiffGram)
6217
if (mode ==
XmlReadMode
.InferSchema)
6229
xmlload ??= new XmlDataLoader(this, fIsXdr, topNode, mode ==
XmlReadMode
.IgnoreSchema);
6240
xmlload ??= new XmlDataLoader(this, fIsXdr, mode ==
XmlReadMode
.IgnoreSchema);
6242
if (mode ==
XmlReadMode
.DiffGram)
6250
if (mode ==
XmlReadMode
.InferSchema)
6793
protected virtual void ReadXmlSerializable(XmlReader? reader) => ReadXml(reader,
XmlReadMode
.DiffGram, true);