1 write to _xtr
System.Private.Xml (1)
System\Xml\Schema\Inference\Infer.cs (1)
180_xtr = instanceDocument;
78 references to _xtr
System.Private.Xml (78)
System\Xml\Schema\Inference\Infer.cs (78)
186while (_xtr.NodeType != XmlNodeType.Element && _xtr.Read()) ; 189if (_xtr.NodeType == XmlNodeType.Element) 192_targetNamespace = _xtr.NamespaceURI; 193if (_xtr.NamespaceURI == XmlSchema.Namespace) 200if (elem!.Name == _xtr.LocalName && elem.QualifiedName.Namespace == _xtr.NamespaceURI) 211AddElement(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, null, null, -1); 634bool bEmptyElement = _xtr!.IsEmptyElement; 642if (_xtr.MoveToFirstAttribute()) 692_xtr.Read(); 693if (_xtr.NodeType == XmlNodeType.Whitespace) 697if (_xtr.NodeType == XmlNodeType.EntityReference) 701} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text)); 703if (_xtr.NodeType == XmlNodeType.EndElement) 768while (!_xtr.EOF && (_xtr.NodeType != XmlNodeType.EndElement)) 772if ((_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.CDATA)) //node can be simple type, complex with simple content or complex with mixed content 782do { _xtr.Read(); } while ((!_xtr.EOF) && ((_xtr.NodeType == XmlNodeType.CDATA) || (_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.Comment) || (_xtr.NodeType == XmlNodeType.ProcessingInstruction) || (_xtr.NodeType == XmlNodeType.Whitespace) || (_xtr.NodeType == XmlNodeType.SignificantWhitespace) || (_xtr.NodeType == XmlNodeType.XmlDeclaration))); 784if (_xtr.NodeType == XmlNodeType.EndElement) 791if ((_xtr.NodeType == XmlNodeType.Text) && (iChildNumber == 1)) 803sce.BaseTypeName = RefineSimpleType(_xtr.Value, ref SimpleType); 822if (_xtr.NodeType == XmlNodeType.Text) 830sce.BaseTypeName = RefineSimpleType(_xtr.Value, ref TypeFlags); 853if (_xtr.NodeType == XmlNodeType.Text) 855xse.SchemaTypeName = RefineSimpleType(_xtr.Value, ref TypeFlags); 863else if (_xtr.NodeType == XmlNodeType.Text) 878xse.SchemaTypeName = RefineSimpleType(_xtr.Value, ref TypeFlags); //simple type 889else if (_xtr.NodeType == XmlNodeType.Element) 891XmlQualifiedName qname = new XmlQualifiedName(_xtr.LocalName, _xtr.NamespaceURI); 921AddElement(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1); 930AddElement(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1); 941FindMatchingElement(bCreatingNewType || bCreatingNewSequence, _xtr, ct, ref lastUsedSeqItem, parentSchema, Maxoccursflag); 944else if (_xtr.NodeType == XmlNodeType.Text) 952if (_xtr.NodeType == XmlNodeType.EntityReference) 958_xtr.Read(); 964} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text)); 1202Debug.Assert(_xtr!.NodeType == XmlNodeType.Attribute); 1205if (_xtr.NamespaceURI == XmlSchema.Namespace) 1210if (_xtr.NamespaceURI == XmlReservedNs.NsXmlNs) 1212if (_xtr.Prefix == "xmlns") 1213_namespaceManager.AddNamespace(_xtr.LocalName, _xtr.Value); 1215else if (_xtr.NamespaceURI == XmlReservedNs.NsXsi) 1217string localName = _xtr.LocalName; 1258xsa = AddAttribute(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, _xtr.Value, bCreatingNewType, parentSchema, sce.Attributes, ct.AttributeUses); 1262xsa = AddAttribute(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, _xtr.Value, bCreatingNewType, parentSchema, ct.Attributes, ct.AttributeUses); 1269} while (_xtr.MoveToNextAttribute());