2 writes to reader
System.Xml (2)
System\Xml\Schema\Parser.cs (1)
62
this.
reader
= reader;
System\Xml\Schema\ParserAsync.cs (1)
22
this.
reader
= reader;
53 references to reader
System.Xml (53)
System\Xml\Schema\Parser.cs (53)
155
if (
reader
.Depth > markupDepth) {
161
else if (
reader
.NodeType == XmlNodeType.Element) {
162
if (builder.ProcessElement(
reader
.Prefix,
reader
.LocalName,
reader
.NamespaceURI)) {
164
if (
reader
.MoveToFirstAttribute()) {
166
builder.ProcessAttribute(
reader
.Prefix,
reader
.LocalName,
reader
.NamespaceURI,
reader
.Value);
167
if (Ref.Equal(
reader
.NamespaceURI, schemaNames.NsXmlNs) && isProcessNamespaces) {
168
namespaceManager.AddNamespace(
reader
.Prefix.Length == 0 ? string.Empty :
reader
.LocalName,
reader
.Value);
171
while (
reader
.MoveToNextAttribute());
172
reader
.MoveToElement(); // get back to the element
175
if (
reader
.IsEmptyElement) {
178
if (
reader
.Depth == schemaXmlDepth) {
183
markupDepth =
reader
.Depth;
192
else if (!
reader
.IsEmptyElement) { //UnsupportedElement in that context
193
markupDepth =
reader
.Depth;
197
else if (
reader
.NodeType == XmlNodeType.Text) { //Check for whitespace
198
if (!xmlCharType.IsOnlyWhitespace(
reader
.Value)) {
199
builder.ProcessCData(
reader
.Value);
202
else if (
reader
.NodeType == XmlNodeType.EntityReference ||
203
reader
.NodeType == XmlNodeType.SignificantWhitespace ||
204
reader
.NodeType == XmlNodeType.CDATA) {
205
builder.ProcessCData(
reader
.Value);
207
else if (
reader
.NodeType == XmlNodeType.EndElement) {
209
if (
reader
.Depth == markupDepth) {
227
if(
reader
.Depth == schemaXmlDepth) {
238
switch (
reader
.NodeType) {
252
currentNode = dummyDocument.CreateTextNode(
reader
.Value );
256
currentNode = dummyDocument.CreateSignificantWhitespace(
reader
.Value );
260
currentNode = dummyDocument.CreateCDataSection(
reader
.Value );
264
currentNode = dummyDocument.CreateEntityReference(
reader
.Name );
268
currentNode = dummyDocument.CreateComment(
reader
.Value );
272
currentNode = dummyDocument.CreateProcessingInstruction(
reader
.Name,
reader
.Value );
295
Debug.Assert(
reader
.NodeType == XmlNodeType.Element );
297
XmlReader r =
reader
;
311
annotationNSManager.AddNamespace(r.Prefix.Length == 0 ? string.Empty :
reader
.LocalName,
reader
.Value);
364
Debug.Assert(
reader
.NodeType == XmlNodeType.Attribute);
366
XmlReader r =
reader
;
387
Debug.Assert(
reader
.NodeType == XmlNodeType.EntityReference);
389
XmlEntityReference eref = dummyDocument.CreateEntityReference(
reader
.LocalName );
390
if ( !
reader
.CanResolveEntity ) {
393
reader
.ResolveEntity();
395
while (
reader
.ReadAttributeValue()) {
396
switch (
reader
.NodeType) {
398
eref.AppendChild(dummyDocument.CreateTextNode(
reader
.Value));
409
throw XmlLoader.UnexpectedNodeType(
reader
.NodeType );