1 write to xtr
System.Xml (1)
System\Xml\Schema\Inference\Infer.cs (1)
205xtr = instanceDocument;
78 references to xtr
System.Xml (78)
System\Xml\Schema\Inference\Infer.cs (78)
211while (xtr.NodeType != XmlNodeType.Element && xtr.Read()) ; 214if (xtr.NodeType == XmlNodeType.Element) 217TargetNamespace = xtr.NamespaceURI; 218if ( xtr.NamespaceURI == XmlSchema.Namespace) 225if (elem.Name == xtr.LocalName && elem.QualifiedName.Namespace == xtr.NamespaceURI) 236xse = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, null, null, -1); 652bool bEmptyElement = xtr.IsEmptyElement; 660if (xtr.MoveToFirstAttribute()) 709xtr.Read(); 710if (xtr.NodeType == XmlNodeType.Whitespace) 714if (xtr.NodeType == XmlNodeType.EntityReference) 718} while( (!xtr.EOF) && (xtr.NodeType != XmlNodeType.EndElement) && (xtr.NodeType != XmlNodeType.CDATA)&&(xtr.NodeType != XmlNodeType.Element)&&(xtr.NodeType != XmlNodeType.Text) ); 720if (xtr.NodeType == XmlNodeType.EndElement) 784while (!xtr.EOF && (xtr.NodeType != XmlNodeType.EndElement)) 788if ((xtr.NodeType == XmlNodeType.Text) || (xtr.NodeType == XmlNodeType.CDATA) ) //node can be simple type, complex with simple content or complex with mixed content 798do{ 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))); 800if (xtr.NodeType == XmlNodeType.EndElement) 807if ((xtr.NodeType == XmlNodeType.Text) && (iChildNumber==1)) 819sce.BaseTypeName = RefineSimpleType(xtr.Value, ref SimpleType); 838if (xtr.NodeType == XmlNodeType.Text) 846sce.BaseTypeName = RefineSimpleType(xtr.Value, ref TypeFlags); 870if (xtr.NodeType == XmlNodeType.Text) 872xse.SchemaTypeName = RefineSimpleType(xtr.Value, ref TypeFlags); 880else if (xtr.NodeType == XmlNodeType.Text) 894xse.SchemaTypeName = RefineSimpleType(xtr.Value, ref TypeFlags); //simple type 905else if (xtr.NodeType == XmlNodeType.Element) 907XmlQualifiedName qname = new XmlQualifiedName(xtr.LocalName, xtr.NamespaceURI); 937XmlSchemaElement subelement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema,((XmlSchemaSequence)ct.Particle).Items, -1); 946XmlSchemaElement subelement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema,((XmlSchemaSequence)ct.Particle).Items, -1); 958XmlSchemaElement subelement = FindMatchingElement(bCreatingNewType || bCreatingNewSequence, xtr, ct, ref lastUsedSeqItem, ref bParticleChanged, parentSchema, Maxoccursflag); 961else if (xtr.NodeType == XmlNodeType.Text) 969if (xtr.NodeType == XmlNodeType.EntityReference) 976xtr.Read(); 982} while( (!xtr.EOF) && (xtr.NodeType != XmlNodeType.EndElement) && (xtr.NodeType != XmlNodeType.CDATA)&&(xtr.NodeType != XmlNodeType.Element)&&(xtr.NodeType != XmlNodeType.Text)); 1216Debug.Assert(xtr.NodeType == XmlNodeType.Attribute); 1219if (xtr.NamespaceURI == XmlSchema.Namespace) 1224if (xtr.NamespaceURI == XmlReservedNs.NsXmlNs) 1226if (xtr.Prefix=="xmlns") 1227NamespaceManager.AddNamespace(xtr.LocalName, xtr.Value); 1229else if (xtr.NamespaceURI == XmlReservedNs.NsXsi) 1231string localName = xtr.LocalName; 1272xsa = AddAttribute(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, xtr.Value, bCreatingNewType, parentSchema, sce.Attributes, ct.AttributeUses); 1276xsa = AddAttribute(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, xtr.Value, bCreatingNewType, parentSchema, ct.Attributes, ct.AttributeUses); 1283} while (xtr.MoveToNextAttribute());