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