1 write to _xtr
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (1)
203
_xtr
= instanceDocument;
78 references to _xtr
dotnet-svcutil-lib (78)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (78)
209
while (
_xtr
.NodeType != XmlNodeType.Element &&
_xtr
.Read()) ;
212
if (
_xtr
.NodeType == XmlNodeType.Element)
215
_targetNamespace =
_xtr
.NamespaceURI;
216
if (
_xtr
.NamespaceURI == XmlSchema.Namespace)
223
if (elem.Name ==
_xtr
.LocalName && elem.QualifiedName.Namespace ==
_xtr
.NamespaceURI)
234
xse = AddElement(
_xtr
.LocalName,
_xtr
.Prefix,
_xtr
.NamespaceURI, null, null, -1);
652
bool bEmptyElement =
_xtr
.IsEmptyElement;
660
if (
_xtr
.MoveToFirstAttribute())
710
_xtr
.Read();
711
if (
_xtr
.NodeType == XmlNodeType.Whitespace)
715
if (
_xtr
.NodeType == XmlNodeType.EntityReference)
719
} while ((!
_xtr
.EOF) && (
_xtr
.NodeType != XmlNodeType.EndElement) && (
_xtr
.NodeType != XmlNodeType.CDATA) && (
_xtr
.NodeType != XmlNodeType.Element) && (
_xtr
.NodeType != XmlNodeType.Text));
721
if (
_xtr
.NodeType == XmlNodeType.EndElement)
786
while (!
_xtr
.EOF && (
_xtr
.NodeType != XmlNodeType.EndElement))
790
if ((
_xtr
.NodeType == XmlNodeType.Text) || (
_xtr
.NodeType == XmlNodeType.CDATA)) //node can be simple type, complex with simple content or complex with mixed content
800
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)));
802
if (
_xtr
.NodeType == XmlNodeType.EndElement)
809
if ((
_xtr
.NodeType == XmlNodeType.Text) && (iChildNumber == 1))
821
sce.BaseTypeName = RefineSimpleType(
_xtr
.Value, ref SimpleType);
840
if (
_xtr
.NodeType == XmlNodeType.Text)
848
sce.BaseTypeName = RefineSimpleType(
_xtr
.Value, ref TypeFlags);
871
if (
_xtr
.NodeType == XmlNodeType.Text)
873
xse.SchemaTypeName = RefineSimpleType(
_xtr
.Value, ref TypeFlags);
881
else if (
_xtr
.NodeType == XmlNodeType.Text)
896
xse.SchemaTypeName = RefineSimpleType(
_xtr
.Value, ref TypeFlags); //simple type
907
else if (
_xtr
.NodeType == XmlNodeType.Element)
909
XmlQualifiedName qname = new XmlQualifiedName(
_xtr
.LocalName,
_xtr
.NamespaceURI);
939
XmlSchemaElement subelement = AddElement(
_xtr
.LocalName,
_xtr
.Prefix,
_xtr
.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1);
948
XmlSchemaElement subelement = AddElement(
_xtr
.LocalName,
_xtr
.Prefix,
_xtr
.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1);
960
XmlSchemaElement subelement = FindMatchingElement(bCreatingNewType || bCreatingNewSequence,
_xtr
, ct, ref lastUsedSeqItem, ref bParticleChanged, parentSchema, Maxoccursflag);
963
else if (
_xtr
.NodeType == XmlNodeType.Text)
971
if (
_xtr
.NodeType == XmlNodeType.EntityReference)
977
_xtr
.Read();
983
} while ((!
_xtr
.EOF) && (
_xtr
.NodeType != XmlNodeType.EndElement) && (
_xtr
.NodeType != XmlNodeType.CDATA) && (
_xtr
.NodeType != XmlNodeType.Element) && (
_xtr
.NodeType != XmlNodeType.Text));
1225
Debug.Assert(
_xtr
.NodeType == XmlNodeType.Attribute);
1228
if (
_xtr
.NamespaceURI == XmlSchema.Namespace)
1233
if (
_xtr
.NamespaceURI == XmlReservedNs.NsXmlNs)
1235
if (
_xtr
.Prefix == "xmlns")
1236
_namespaceManager.AddNamespace(
_xtr
.LocalName,
_xtr
.Value);
1238
else if (
_xtr
.NamespaceURI == XmlReservedNs.NsXsi)
1240
string localName =
_xtr
.LocalName;
1281
xsa = AddAttribute(
_xtr
.LocalName,
_xtr
.Prefix,
_xtr
.NamespaceURI,
_xtr
.Value, bCreatingNewType, parentSchema, sce.Attributes, ct.AttributeUses);
1285
xsa = AddAttribute(
_xtr
.LocalName,
_xtr
.Prefix,
_xtr
.NamespaceURI,
_xtr
.Value, bCreatingNewType, parentSchema, ct.Attributes, ct.AttributeUses);
1292
} while (
_xtr
.MoveToNextAttribute());