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