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