7 writes to coreReader
System.Xml (7)
System\Xml\Core\XsdValidatingReader.cs (6)
130this.coreReader = reader; 1670coreReader = GetCachingReader(); 2028this.coreReader = cachingReader.GetCoreReader(); 2075coreReader = GetCachingReader(); 2124coreReader = GetCachingReader(); 2172this.coreReader = cachingReader.GetCoreReader(); //re-switch the core-reader after caching reader is done
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
517coreReader = GetCachingReader();
126 references to coreReader
System.Xml (126)
System\Xml\Core\XsdValidatingReader.cs (87)
133coreReaderNameTable = coreReader.NameTable; 192XmlReaderSettings settings = coreReader.Settings; 215XmlNodeType nodeType = coreReader.NodeType; 235return coreReader.Name; 245return coreReader.LocalName; 255return coreReader.NamespaceURI; 265return coreReader.Prefix; 275return coreReader.HasValue; 285return coreReader.Value; 295return coreReader.Depth; 302return coreReader.BaseURI; 309return coreReader.IsEmptyElement; 320return coreReader.IsDefault; //This is DTD Default attribute 327return coreReader.QuoteChar; 334return coreReader.XmlSpace; 341return coreReader.XmlLang; 885string attValue = coreReader.GetAttribute(name); 898string attValue = coreReader.GetAttribute(name, namespaceURI); 920return coreReader.GetAttribute(i); 933if (coreReader.MoveToAttribute(name)) { 964if (coreReader.MoveToAttribute(name, ns)) { 1000coreReader.MoveToAttribute(i); 1023if (coreReader.MoveToFirstAttribute()) { 1053bool moveTo = coreReader.MoveToNextAttribute(); 1083if (coreReader.MoveToElement() || (int)validationState < 0) { //states OnDefaultAttribute or OnReadAttributeValue 1095if (coreReader.Read()) { 1101if (coreReader.EOF) { 1138if (coreReader.ReadState == ReadState.Interactive) { //If the underlying reader is already positioned on a ndoe, process it 1158return coreReader.EOF; 1164coreReader.Close(); 1171return (validationState == ValidatingReaderState.Init) ? ReadState.Initial : coreReader.ReadState; 1180if (coreReader.IsEmptyElement) { 1186if ((xmlSchemaInfo.IsUnionType || xmlSchemaInfo.IsDefault) && coreReader is XsdCachingReader) { 1189coreReader.Skip(); 1234return coreReader.ReadAttributeValue(); 1344if (!coreReader.IsEmptyElement) { 1383if (coreReader.IsEmptyElement) { 1408if (!coreReader.IsEmptyElement) { 1525return coreReader.Value; 1557switch (coreReader.NodeType) { 1585validator.SetDtdSchemaInfo(coreReader.DtdInfo); 1601if (this.processInlineSchema && IsXSDRoot(coreReader.LocalName, coreReader.NamespaceURI) && coreReader.Depth > 0) { 1603attributeCount = coreReaderAttributeCount = coreReader.AttributeCount; 1604if (!coreReader.IsEmptyElement) { //If its not empty schema, then parse else ignore 1606inlineSchemaParser.StartParsing(coreReader, null); 1629if (coreReader.MoveToFirstAttribute()) { 1631string objectNs = coreReader.NamespaceURI; 1632string objectName = coreReader.LocalName; 1635xsiSchemaLocation = coreReader.Value; 1638xsiNoNamespaceSL = coreReader.Value; 1641xsiType = coreReader.Value; 1644xsiNil = coreReader.Value; 1647if (manageNamespaces && Ref.Equal(coreReader.NamespaceURI, NsXmlNs)) { 1648nsManager.AddNamespace(coreReader.Prefix.Length == 0 ? string.Empty : coreReader.LocalName, coreReader.Value); 1651} while (coreReader.MoveToNextAttribute()); 1652coreReader.MoveToElement(); 1654validator.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI, xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 1657if (coreReader.IsEmptyElement) { 1669int depth = coreReader.Depth; 1682attributeCount = coreReaderAttributeCount = coreReader.AttributeCount; 1686if (coreReader.MoveToFirstAttribute()) { 1688string localName = coreReader.LocalName; 1689string ns = coreReader.NamespaceURI; 1705} while (coreReader.MoveToNextAttribute()); 1707coreReader.MoveToElement(); 1787currentAttrIndex = coreReader.AttributeCount + i; 1821if (coreReader.Read()) { 1822if (coreReader.NodeType == XmlNodeType.Element) { 1823attributeCount = coreReaderAttributeCount = coreReader.AttributeCount; 1892XsdCachingReader cachingReader = this.coreReader as XsdCachingReader; 1980while (coreReader.Read()) { 1984switch (coreReader.NodeType) { 2026XsdCachingReader cachingReader = this.coreReader as XsdCachingReader; 2030Debug.Assert(coreReader.NodeType == XmlNodeType.EndElement); 2035while (coreReader.Read()) { 2036switch (coreReader.NodeType) { 2073XsdCachingReader cachedReader = coreReader as XsdCachingReader; 2080if (coreReader.Read()) { 2081switch (coreReader.NodeType) { 2122XsdCachingReader cachedReader = coreReader as XsdCachingReader; 2153cachingReader = new XsdCachingReader(coreReader, lineInfo, new CachingEventHandler(CachingCallBack)); 2156cachingReader.Reset(coreReader);
System\Xml\Core\XsdValidatingReaderAsync.cs (39)
24return coreReader.GetValueAsync(); 182if (coreReader.EOF) { 201if (coreReader.EOF) { 228Task<bool> readTask = coreReader.ReadAsync(); 259if (coreReader.ReadState == ReadState.Interactive) { //If the underlying reader is already positioned on a ndoe, process it 280if (coreReader.IsEmptyElement) { 286if ((xmlSchemaInfo.IsUnionType || xmlSchemaInfo.IsDefault) && coreReader is XsdCachingReader) { 289await coreReader.SkipAsync().ConfigureAwait(false); 404switch (coreReader.NodeType) { 430validator.SetDtdSchemaInfo(coreReader.DtdInfo); 448if (this.processInlineSchema && IsXSDRoot(coreReader.LocalName, coreReader.NamespaceURI) && coreReader.Depth > 0) { 450attributeCount = coreReaderAttributeCount = coreReader.AttributeCount; 451if (!coreReader.IsEmptyElement) { //If its not empty schema, then parse else ignore 453await inlineSchemaParser.StartParsingAsync(coreReader, null).ConfigureAwait(false); 476if (coreReader.MoveToFirstAttribute()) { 478string objectNs = coreReader.NamespaceURI; 479string objectName = coreReader.LocalName; 482xsiSchemaLocation = coreReader.Value; 485xsiNoNamespaceSL = coreReader.Value; 488xsiType = coreReader.Value; 491xsiNil = coreReader.Value; 494if (manageNamespaces && Ref.Equal(coreReader.NamespaceURI, NsXmlNs)) { 495nsManager.AddNamespace(coreReader.Prefix.Length == 0 ? string.Empty : coreReader.LocalName, coreReader.Value); 498} while (coreReader.MoveToNextAttribute()); 499coreReader.MoveToElement(); 501validator.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI, xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 504if (coreReader.IsEmptyElement) { 516int depth = coreReader.Depth; 530if (await coreReader.ReadAsync().ConfigureAwait(false)) { 531if (coreReader.NodeType == XmlNodeType.Element) { 532attributeCount = coreReaderAttributeCount = coreReader.AttributeCount; 609XsdCachingReader cachingReader = this.coreReader as XsdCachingReader; 707while (await coreReader.ReadAsync().ConfigureAwait(false)) { 711switch (coreReader.NodeType) {