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