55 ST_boolean,
ST_byte,
ST_unsignedByte,
ST_short,
ST_unsignedShort,
ST_int,
ST_unsignedInt,
ST_long,
ST_unsignedLong,
ST_integer,
163 if (!
item.Equals(
"xml") && !
item.Equals(
"xmlns"))
166 if (
text2.Length != 0)
181 if (
childURI ==
"http://www.w3.org/2001/XMLSchema")
202 if (
childURI ==
"http://www.w3.org/XML/1998/namespace")
343 string @
namespace =
null;
356 xmlSchemaImport2.Schema = xmlSchema;
357 if (childURI.Length != 0)
359 @
namespace = childURI;
361 xmlSchemaImport2.Namespace = @
namespace;
365 return xmlSchemaAttribute2;
373 xmlSchema.TargetNamespace = targetNS;
374 _schemaSet.
Add(xmlSchema);
380 if (childURI ==
"http://www.w3.org/2001/XMLSchema")
387 bool bCreatingNewType =
true;
388 if (childURI ==
string.
Empty)
395 xmlSchemaElement.Name = localName;
396 parentSchema2 = parentSchema;
402 else if (_schemaSet.
Contains(childURI))
404 xmlSchemaElement = FindGlobalElement(childURI, localName, out parentSchema2);
405 if (xmlSchemaElement ==
null)
409 parentSchema2 = arrayList[0] as
XmlSchema;
412 xmlSchemaElement.Name = localName;
413 parentSchema2.Items.Add(xmlSchemaElement);
417 bCreatingNewType =
false;
422 parentSchema2 = CreateXmlSchema(childURI);
425 _namespaceManager.AddNamespace(
prefix, childURI);
428 xmlSchemaElement.Name = localName;
429 parentSchema2.
Items.
Add(xmlSchemaElement);
431 if (parentSchema ==
null)
433 parentSchema = parentSchema2;
434 _rootSchema = parentSchema;
449 xmlSchemaImport2.Schema = parentSchema2;
450 xmlSchemaImport2.Namespace = childURI;
454 xmlSchemaElement2 = xmlSchemaElement;
455 if (addLocation !=
null)
461 xmlSchemaElement.MinOccurs = 0m;
463 if (positionWithinCollection == -1)
465 positionWithinCollection = addLocation.
Add(xmlSchemaElement);
469 addLocation.
Insert(positionWithinCollection, xmlSchemaElement);
478 xmlSchemaElement3.MinOccurs = 0m;
480 if (positionWithinCollection == -1)
482 positionWithinCollection = addLocation.
Add(xmlSchemaElement3);
486 addLocation.
Insert(positionWithinCollection, xmlSchemaElement3);
488 xmlSchemaElement2 = xmlSchemaElement3;
491 InferElement(xmlSchemaElement, bCreatingNewType, parentSchema2);
492 return xmlSchemaElement2;
498 int lastUsedSeqItem = -1;
500 XmlSchemaType effectiveSchemaType = GetEffectiveSchemaType(xse, bCreatingNewType);
504 ProcessAttributes(ref xse, effectiveSchemaType, bCreatingNewType, parentSchema);
506 else if (!bCreatingNewType && xmlSchemaComplexType !=
null)
508 MakeExistingAttributesOptional(xmlSchemaComplexType,
null);
516 if (!bCreatingNewType)
518 if (xmlSchemaComplexType !=
null)
520 if (xmlSchemaComplexType.
Particle !=
null)
522 xmlSchemaComplexType.Particle.MinOccurs = 0m;
527 xmlSchemaSimpleContentExtension.BaseTypeName = ST_string;
528 xmlSchemaSimpleContentExtension.LineNumber = 262144;
533 xse.LineNumber = 262144;
534 xse.SchemaTypeName = ST_string;
539 xse.LineNumber = 262144;
561 if (xmlSchemaComplexType !=
null)
566 xmlSchemaSimpleContentExtension2.BaseTypeName = ST_string;
567 xmlSchemaSimpleContentExtension2.LineNumber = 262144;
569 else if (bCreatingNewType)
573 MoveAttributes(xmlSchemaComplexType, xmlSchemaSimpleContentExtension3, bCreatingNewType);
574 xmlSchemaSimpleContentExtension3.BaseTypeName = ST_string;
575 xmlSchemaSimpleContentExtension3.LineNumber = 262144;
579 xmlSchemaComplexType.IsMixed =
true;
584 xse.SchemaTypeName = ST_string;
585 xse.LineNumber = 262144;
588 if (bCreatingNewType)
590 xse.LineNumber = 262144;
592 else if (xmlSchemaComplexType !=
null)
594 if (xmlSchemaComplexType.
Particle !=
null)
596 xmlSchemaComplexType.Particle.MinOccurs = 0m;
601 xmlSchemaSimpleContentExtension4.BaseTypeName = ST_string;
602 xmlSchemaSimpleContentExtension4.LineNumber = 262144;
607 xse.LineNumber = 262144;
608 xse.SchemaTypeName = ST_string;
620 if (xmlSchemaComplexType !=
null)
622 if (xmlSchemaComplexType.
Particle !=
null)
624 xmlSchemaComplexType.IsMixed =
true;
635 xmlSchemaComplexType.Particle.MinOccurs = 0m;
647 num2 = xmlSchemaSimpleContentExtension5.
LineNumber;
651 num2 = GetSchemaType(xmlSchemaSimpleContentExtension5.
BaseTypeName);
654 xmlSchemaSimpleContentExtension5.BaseTypeName = RefineSimpleType(_xtr.
Value, ref num2);
655 xmlSchemaSimpleContentExtension5.LineNumber = num2;
659 xmlSchemaSimpleContentExtension5.BaseTypeName = ST_string;
660 xmlSchemaSimpleContentExtension5.LineNumber = 262144;
667 MoveAttributes(xmlSchemaComplexType, xmlSchemaSimpleContentExtension6, bCreatingNewType);
670 int iTypeFlags = (bCreatingNewType ? (-1) : 262144);
671 xmlSchemaSimpleContentExtension6.BaseTypeName = RefineSimpleType(_xtr.
Value, ref iTypeFlags);
672 xmlSchemaSimpleContentExtension6.LineNumber = iTypeFlags;
676 xmlSchemaSimpleContentExtension6.BaseTypeName = ST_string;
677 xmlSchemaSimpleContentExtension6.LineNumber = 262144;
683 xse.SchemaTypeName = ST_string;
684 xse.LineNumber = 262144;
688 int iTypeFlags2 = -1;
689 if (bCreatingNewType)
693 xse.SchemaTypeName = RefineSimpleType(_xtr.
Value, ref iTypeFlags2);
694 xse.LineNumber = iTypeFlags2;
698 xse.SchemaTypeName = ST_string;
699 xse.LineNumber = 262144;
711 if (iTypeFlags2 == -1 && xse.
LineNumber == 262144)
713 iTypeFlags2 = 262144;
717 xse.SchemaTypeName = RefineSimpleType(_xtr.
Value, ref iTypeFlags2);
718 xse.LineNumber = iTypeFlags2;
722 xse.SchemaTypeName = ST_string;
723 xse.LineNumber = 262144;
730 bool setMaxoccurs =
false;
739 if (xmlSchemaComplexType ==
null)
744 xmlSchemaComplexType.IsMixed =
true;
751 MoveAttributes(scExtension, xmlSchemaComplexType);
752 xmlSchemaComplexType.ContentModel =
null;
753 xmlSchemaComplexType.IsMixed =
true;
754 if (xmlSchemaComplexType.
Particle !=
null)
762 if (!bCreatingNewType)
764 xmlSchemaComplexType.Particle.MinOccurs = 0m;
767 else if (xmlSchemaComplexType.
Particle ==
null)
772 if (!bCreatingNewType)
780 bool bParticleChanged =
false;
781 FindMatchingElement(bCreatingNewType || flag2, _xtr, xmlSchemaComplexType, ref lastUsedSeqItem, ref bParticleChanged, parentSchema, setMaxoccurs);
786 if (xmlSchemaComplexType ==
null)
790 xmlSchemaComplexType.IsMixed =
true;
809 if (lastUsedSeqItem == -1)
820 xmlSchemaElement.MinOccurs = 0m;
851 if (xmlSchemaType ==
null)
855 if (xmlSchemaType ==
null)
860 return xmlSchemaType;
865 if (xtr.
NamespaceURI ==
"http://www.w3.org/2001/XMLSchema")
869 bool flag = lastUsedSeqItem == -1;
874 if (
text.Length == 0)
879 if (xmlSchemaSequence.
Items.
Count < 1 && !bCreatingNewType)
883 xmlSchemaElement.MinOccurs = 0m;
884 return xmlSchemaElement;
889 for (
int i = 0; i < xmlSchemaChoice.
Items.
Count; i++)
897 InferElement(xmlSchemaElement2, bCreatingNewType:
false, parentSchema);
898 SetMinMaxOccurs(xmlSchemaElement2, setMaxoccurs);
899 return xmlSchemaElement2;
901 if (xmlSchemaElement2.RefName.Name == xtr.
LocalName && xmlSchemaElement2.RefName.Namespace == xtr.
NamespaceURI)
904 InferElement(xmlSchemaElement3, bCreatingNewType:
false, parentSchema);
905 SetMinMaxOccurs(xmlSchemaElement2, setMaxoccurs);
906 return xmlSchemaElement3;
912 if (lastUsedSeqItem >= 0)
914 num = lastUsedSeqItem;
925 xmlSchemaElement4.MaxOccurs = decimal.MaxValue;
927 lastUsedSeqItem = num;
928 InferElement(xmlSchemaElement4, bCreatingNewType:
false, parentSchema);
929 SetMinMaxOccurs(xmlSchemaElement4, setMaxOccurs:
false);
930 return xmlSchemaElement4;
932 if (xmlSchemaElement4.RefName.Name == xtr.
LocalName && xmlSchemaElement4.RefName.Namespace == xtr.
NamespaceURI)
936 xmlSchemaElement4.MaxOccurs = decimal.MaxValue;
938 lastUsedSeqItem = num;
940 InferElement(xse, bCreatingNewType:
false, parentSchema);
941 SetMinMaxOccurs(xmlSchemaElement4, setMaxOccurs:
false);
942 return xmlSchemaElement4;
944 if (flag && xmlSchemaElement4.MinOccurs != 0m)
946 xmlSchemaObjectCollection.
Add(xmlSchemaElement4);
948 for (num++; num < xmlSchemaSequence.
Items.
Count; num++)
957 lastUsedSeqItem = num;
958 for (
int j = 0; j < xmlSchemaObjectCollection.
Count; j++)
962 InferElement(xmlSchemaElement5, bCreatingNewType:
false, parentSchema);
963 SetMinMaxOccurs(xmlSchemaElement5, setMaxoccurs);
964 return xmlSchemaElement5;
966 if (xmlSchemaElement5.RefName.Name == xtr.
LocalName && xmlSchemaElement5.RefName.Namespace == xtr.
NamespaceURI)
968 lastUsedSeqItem = num;
969 for (
int k = 0; k < xmlSchemaObjectCollection.
Count; k++)
974 InferElement(xmlSchemaElement6, bCreatingNewType:
false, parentSchema);
975 SetMinMaxOccurs(xmlSchemaElement5, setMaxoccurs);
976 return xmlSchemaElement6;
978 xmlSchemaObjectCollection.
Add(xmlSchemaElement5);
984 xmlSchemaElement7 = FindElement(xmlSchemaSequence.
Items, xtr.
LocalName);
985 xse2 = xmlSchemaElement7;
990 if (xmlSchemaElement7 !=
null)
992 xse2 = FindGlobalElement(
text, xtr.
LocalName, out parentSchema);
995 if (xmlSchemaElement7 !=
null)
998 xmlSchemaChoice2.MaxOccurs = decimal.MaxValue;
999 SetMinMaxOccurs(xmlSchemaElement7, setMaxoccurs);
1000 InferElement(xse2, bCreatingNewType:
false, parentSchema);
1001 for (
int l = 0; l < xmlSchemaSequence.
Items.
Count; l++)
1006 xmlSchemaSequence.
Items.
Add(xmlSchemaChoice2);
1007 return xmlSchemaElement7;
1010 if (!bCreatingNewType)
1012 xmlSchemaElement7.MinOccurs = 0m;
1014 return xmlSchemaElement7;
1025 if (_xtr.
NamespaceURI ==
"http://www.w3.org/2001/XMLSchema")
1029 if (_xtr.
NamespaceURI ==
"http://www.w3.org/2000/xmlns/")
1031 if (_xtr.
Prefix ==
"xmlns")
1037 if (_xtr.
NamespaceURI ==
"http://www.w3.org/2001/XMLSchema-instance")
1040 if (localName ==
"nil")
1042 xse.IsNillable =
true;
1044 else if (localName !=
"type" && localName !=
"schemaLocation" && localName !=
"noNamespaceSchemaLocation")
1053 xse.SchemaType = xmlSchemaComplexType;
1056 if (effectiveSchemaType !=
null && effectiveSchemaType.
Datatype !=
null && !xse.SchemaTypeName.IsEmpty)
1060 xmlSchemaSimpleContentExtension.BaseTypeName = xse.SchemaTypeName;
1061 xmlSchemaSimpleContentExtension.LineNumber = xse.
LineNumber;
1074 if (xmlSchemaAttribute !=
null)
1076 xmlSchemaObjectCollection.
Add(xmlSchemaAttribute);
1080 if (!bCreatingNewType && xmlSchemaComplexType !=
null)
1082 MakeExistingAttributesOptional(xmlSchemaComplexType, xmlSchemaObjectCollection);
1099 simpleContentExtension.Attributes.Add(
item);
1101 ct.Attributes.Clear();
1110 return xmlSchemaAttribute;
1120 parentSchema =
null;
1123 xmlSchemaElement = FindElement(
item.Items, localName);
1124 if (xmlSchemaElement !=
null)
1126 parentSchema =
item;
1127 return xmlSchemaElement;
1135 for (
int i = 0; i < elements.
Count; i++)
1139 return xmlSchemaElement;
1151 return xmlSchemaAttribute;
1159 for (
int i = 0; i < elements.
Count; i++)
1161 if (elements[i] is
XmlSchemaElement xmlSchemaElement && xmlSchemaElement.
RefName !=
null && xmlSchemaElement.RefName.
Name == elementName && xmlSchemaElement.RefName.Namespace == nsURI)
1163 return xmlSchemaElement;
1178 SwitchUseToOptional(xmlSchemaSimpleContentExtension.
Attributes, attributesInInstance);
1182 SwitchUseToOptional(ct.
Attributes, attributesInInstance);
1188 for (
int i = 0; i < attributes.
Count; i++)
1194 if (attributesInInstance !=
null)
1196 if (xmlSchemaAttribute.RefName.Name.Length == 0)
1198 if (FindAttribute(attributesInInstance, xmlSchemaAttribute.Name) ==
null)
1203 else if (FindAttributeRef(attributesInInstance, xmlSchemaAttribute.RefName.Name, xmlSchemaAttribute.RefName.Namespace) ==
null)
1217 bool bNeedsRangeCheck =
false;
1219 if (iTypeFlags == 262144 || _typeInference ==
InferenceOption.Relaxed)
1223 iTypeFlags &= InferSimpleType(
s, ref bNeedsRangeCheck);
1224 if (iTypeFlags == 262144)
1228 if (bNeedsRangeCheck)
1230 if (((uint)iTypeFlags & 2u) != 0)
1235 if (((uint)iTypeFlags & 4u) != 0)
1237 return ST_unsignedByte;
1249 if (((uint)iTypeFlags & 4u) != 0)
1254 return ST_unsignedByte;
1264 if (((uint)iTypeFlags & 8u) != 0)
1269 if (((uint)iTypeFlags & 0x10u) != 0)
1271 return ST_unsignedShort;
1283 if (((uint)iTypeFlags & 0x10u) != 0)
1288 return ST_unsignedShort;
1298 if (((uint)iTypeFlags & 0x20u) != 0)
1303 if (((uint)iTypeFlags & 0x40u) != 0)
1305 return ST_unsignedInt;
1317 if (((uint)iTypeFlags & 0x40u) != 0)
1322 return ST_unsignedInt;
1332 if (((uint)iTypeFlags & 0x80u) != 0)
1337 if (((uint)iTypeFlags & 0x100u) != 0)
1339 return ST_unsignedLong;
1351 if (((uint)iTypeFlags & 0x100u) != 0)
1356 return ST_unsignedLong;
1366 if (((uint)iTypeFlags & 0x1000u) != 0)
1371 if (((uint)iTypeFlags & 0x200u) != 0)
1375 if (((uint)iTypeFlags & 0x400u) != 0)
1379 if (((uint)iTypeFlags & 0x800u) != 0)
1396 iTypeFlags &= -2049;
1405 iTypeFlags &= -4097;
1407 if (((uint)iTypeFlags & 0x800u) != 0)
1412 if (((uint)iTypeFlags & 0x200u) != 0)
1416 if (((uint)iTypeFlags & 0x400u) != 0)
1428 iTypeFlags &= -2049;
1430 if (((uint)iTypeFlags & 0x200u) != 0)
1434 if (((uint)iTypeFlags & 0x400u) != 0)
1438 if (iTypeFlags == 393216)
1443 return ST_gYearMonth;
1451 iTypeFlags = 262144;
1454 if (iTypeFlags == 270336)
1467 iTypeFlags = 262144;
1470 if (iTypeFlags == 262145)
1475 return iTypeFlags
switch
1477 262144 => ST_string,
1480 4 => ST_unsignedByte,
1482 16 => ST_unsignedShort,
1484 64 => ST_unsignedInt,
1486 256 => ST_unsignedLong,
1491 8192 => ST_duration,
1492 16384 => ST_dateTime,
1495 131072 => ST_gYearMonth,
1496 262145 => ST_boolean,
1497 278528 => ST_dateTime,
1501 266240 => ST_double,
1539 if (
s.AsSpan(num).SequenceEqual(
"INF"))
1546 bNeedsRangeCheck =
true;
1548 if (num ==
s.Length)
1550 if (num == 1 || (num == 2 && (flag2 || flag)))
1557 if (c21 !=
'E' && c21 !=
'e')
1559 if (
s[num] <
'0' ||
s[num] >
'9')
1566 if (num ==
s.Length)
1571 if (c22 ==
'E' || c22 ==
'e')
1575 if (
s[num] <
'0' ||
s[num] >
'9')
1582 if (num ==
s.Length)
1587 if (c23 !=
'+' && c23 !=
'-')
1589 if (
s[num] <
'0' ||
s[num] >
'9')
1597 if (num ==
s.Length)
1601 if (
s[num] <
'0' ||
s[num] >
'9')
1609 if (num ==
s.Length)
1614 while (
s[num] >=
'0' &&
s[num] <=
'9');
1621 if (num ==
s.Length)
1638 if (
s[num] <
'0' ||
s[num] >
'9')
1648 if (num ==
s.Length)
1661 if (
s[num] <
'0' ||
s[num] >
'9')
1670 if (num ==
s.Length)
1677 if (
s[num] <
'0' ||
s[num] >
'9')
1684 if (num ==
s.Length)
1697 if (
s[num] <
'0' ||
s[num] >
'9')
1704 if (num ==
s.Length)
1706 bNeedsRangeCheck =
true;
1714 if (
s[num] <
'0' ||
s[num] >
'9')
1721 if (num ==
s.Length)
1732 if (
s[num] <
'0' ||
s[num] >
'9')
1744 if (num ==
s.Length)
1746 bNeedsRangeCheck =
true;
1757 if (num ==
s.Length)
1759 bNeedsRangeCheck =
true;
1767 if (
s[num] <
'0' ||
s[num] >
'9')
1774 if (num ==
s.Length)
1783 if (
s[num] <
'0' ||
s[num] >
'9')
1792 if (num ==
s.Length)
1796 if (
s[num] <
'0' ||
s[num] >
'9')
1803 if (num ==
s.Length)
1808 if ((uint)c17 <= 72u)
1817 if (num ==
s.Length)
1819 bNeedsRangeCheck =
true;
1822 if (
s[num] <
'0' ||
s[num] >
'9')
1829 if (num ==
s.Length)
1844 if (
s[num] <
'0' ||
s[num] >
'9')
1865 if (
s[num] <
'0' ||
s[num] >
'9')
1872 if (num ==
s.Length)
1874 bNeedsRangeCheck =
true;
1877 if (
s[num] <
'0' ||
s[num] >
'9')
1884 if (num ==
s.Length)
1893 if (
s[num] <
'0' ||
s[num] >
'9')
1901 if (num ==
s.Length)
1903 bNeedsRangeCheck =
true;
1906 if (
s[num] <
'0' ||
s[num] >
'9')
1913 if (num ==
s.Length)
1926 if (
s[num] <
'0' ||
s[num] >
'9')
1937 if (num ==
s.Length)
1939 bNeedsRangeCheck =
true;
1956 if (num ==
s.Length)
1958 bNeedsRangeCheck =
true;
1963 if (
s ==
"0" ||
s ==
"1")
1972 if (c2 ==
'E' || c2 ==
'e')
1974 bNeedsRangeCheck =
true;
1977 if (
s[num] <
'0' ||
s[num] >
'9')
1982 if (num ==
s.Length)
1984 bNeedsRangeCheck =
true;
1992 if ((uint)c3 <= 58u)
2004 else if (c3 ==
'E' || c3 ==
'e')
2006 bNeedsRangeCheck =
true;
2009 if (
s[num] <
'0' ||
s[num] >
'9')
2014 if (num ==
s.Length)
2016 bNeedsRangeCheck =
true;
2026 if (c4 ==
'E' || c4 ==
'e')
2028 bNeedsRangeCheck =
true;
2031 if (
s[num] <
'0' ||
s[num] >
'9')
2038 if (num ==
s.Length)
2043 if ((uint)c5 <= 46u)
2054 else if (c5 ==
'E' || c5 ==
'e')
2056 bNeedsRangeCheck =
true;
2059 if (
s[num] <
'0' ||
s[num] >
'9')
2064 bNeedsRangeCheck =
true;
2080 if (num ==
s.Length)
2084 bNeedsRangeCheck =
true;
2092 if (num ==
s.Length)
2096 if (
s[num] <
'0' ||
s[num] >
'9')
2101 if (num ==
s.Length)
2105 if (
s[num] <
'0' ||
s[num] >
'9')
2110 if (num ==
s.Length)
2119 if (num ==
s.Length)
2123 if (
s[num] <
'0' ||
s[num] >
'9')
2128 if (num ==
s.Length)
2132 if (
s[num] <
'0' ||
s[num] >
'9')
2137 if (num ==
s.Length)
2157 if (num ==
s.Length)
2161 if (
s[num] <
'0' ||
s[num] >
'9')
2168 if (num ==
s.Length)
2173 if ((uint)c6 <= 45u)
2175 if (c6 ==
'+' || c6 ==
'-')
2180 else if (c6 ==
'Z' || c6 ==
'z')
2184 if (
s[num] <
'0' ||
s[num] >
'9')
2192 if (num ==
s.Length)
2196 if (
s[num] <
'0' ||
s[num] >
'9')
2201 if (num ==
s.Length)
2205 if (
s[num] <
'0' ||
s[num] >
'9')
2210 if (num ==
s.Length)
2222 if (num ==
s.Length)
2226 if (
s[num] <
'0' ||
s[num] >
'9')
2231 if (num ==
s.Length)
2235 if (
s[num] <
'0' ||
s[num] >
'9')
2240 if (num ==
s.Length)
2242 bNeedsRangeCheck =
true;
2246 if ((uint)c8 <= 45u)
2256 if (num ==
s.Length)
2260 if (
s[num] <
'0' ||
s[num] >
'9')
2265 if (num ==
s.Length)
2269 if (
s[num] <
'0' ||
s[num] >
'9')
2274 if (num ==
s.Length)
2279 if ((uint)c9 <= 58u)
2281 if (c9 ==
'+' || c9 ==
'-')
2297 if (num ==
s.Length)
2301 if (
s[num] <
'0' ||
s[num] >
'9')
2306 if (num ==
s.Length)
2310 if (
s[num] <
'0' ||
s[num] >
'9')
2315 if (num ==
s.Length)
2325 if (c9 ==
'Z' || c9 ==
'z')
2333 else if (c8 ==
'Z' || c8 ==
'z')
2341 if (num ==
s.Length)
2345 if (
s[num] <
'0' ||
s[num] >
'9')
2350 if (num ==
s.Length)
2354 if (
s[num] <
'0' ||
s[num] >
'9')
2359 if (num ==
s.Length)
2363 bNeedsRangeCheck =
true;
2372 internal static int DateTime(
string s,
bool bDate,
bool bTime)
2400 xmlSchemaElement.Annotation = copyElement.
Annotation;
2401 xmlSchemaElement.Block = copyElement.
Block;
2402 xmlSchemaElement.DefaultValue = copyElement.
DefaultValue;
2403 xmlSchemaElement.Final = copyElement.
Final;
2404 xmlSchemaElement.FixedValue = copyElement.
FixedValue;
2405 xmlSchemaElement.Form = copyElement.
Form;
2406 xmlSchemaElement.Id = copyElement.
Id;
2409 xmlSchemaElement.IsNillable = copyElement.
IsNillable;
2411 xmlSchemaElement.LineNumber = copyElement.
LineNumber;
2412 xmlSchemaElement.LinePosition = copyElement.
LinePosition;
2413 xmlSchemaElement.Name = copyElement.
Name;
2414 xmlSchemaElement.Namespaces = copyElement.
Namespaces;
2415 xmlSchemaElement.RefName = copyElement.
RefName;
2416 xmlSchemaElement.SchemaType = copyElement.
SchemaType;
2418 xmlSchemaElement.SourceUri = copyElement.
SourceUri;
2423 xmlSchemaElement.MinOccurs = copyElement.
MinOccurs;
2427 xmlSchemaElement.MaxOccurs = copyElement.
MaxOccurs;
2429 return xmlSchemaElement;
2434 if (qname == SimpleTypes[0])
2438 if (qname == SimpleTypes[1])
2442 if (qname == SimpleTypes[2])
2446 if (qname == SimpleTypes[3])
2450 if (qname == SimpleTypes[4])
2454 if (qname == SimpleTypes[5])
2458 if (qname == SimpleTypes[6])
2462 if (qname == SimpleTypes[7])
2466 if (qname == SimpleTypes[8])
2470 if (qname == SimpleTypes[9])
2474 if (qname == SimpleTypes[10])
2478 if (qname == SimpleTypes[11])
2482 if (qname == SimpleTypes[12])
2486 if (qname == SimpleTypes[13])
2490 if (qname == SimpleTypes[14])
2494 if (qname == SimpleTypes[15])
2498 if (qname == SimpleTypes[16])
2502 if (qname == SimpleTypes[17])
2506 if (qname == SimpleTypes[18])
2510 if (qname ==
null || qname.
IsEmpty)
2523 el.MaxOccurs = decimal.MaxValue;
virtual bool Contains(object key)
virtual void Add(object key, object? value)
static string SchInf_simplecontent
static string SchInf_schematype
static string Sch_NotXsiAttribute
static string SchInf_particle
static string SchInf_entity
static string SchInf_noct
static string SchInf_noseq
static string SchInf_UnknownParticle
static string SchInf_extension
static string SchInf_NoElement
static string SchInf_schema
XmlAttribute?[] UnhandledAttributes
XmlSchemaAnnotation? Annotation
override XmlSchemaObjectCollection Items
XmlSchemaContentModel? ContentModel
XmlSchemaObjectCollection Attributes
static XmlSchemaComplexType AnyType
XmlSchemaParticle? Particle
XmlSchemaObjectTable AttributeUses
XmlSchemaType? SchemaType
XmlSchemaType? ElementSchemaType
XmlSchemaDerivationMethod Final
XmlSchemaDerivationMethod Block
XmlQualifiedName SchemaTypeName
XmlQualifiedName SubstitutionGroup
XmlSchemaAttribute FindAttributeRef(ICollection attributes, string attributeName, string nsURI)
static XmlQualifiedName[] SimpleTypes
XmlSchemaAttribute FindAttribute(ICollection attributes, string attrName)
static XmlQualifiedName ST_decimal
InferenceOption Occurrence
readonly ArrayList _schemaList
static XmlQualifiedName ST_date
XmlSchema CreateXmlSchema(string targetNS)
XmlSchemaSet InferSchema(XmlReader instanceDocument)
XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs)
XmlSchemaAttribute AddAttribute(string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes)
static XmlQualifiedName ST_boolean
void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema)
static XmlQualifiedName ST_long
static XmlQualifiedName ST_unsignedLong
XmlQualifiedName RefineSimpleType(string s, ref int iTypeFlags)
XmlSchemaElement FindElement(XmlSchemaObjectCollection elements, string elementName)
InferenceOption _occurrence
static XmlQualifiedName ST_unsignedShort
static XmlQualifiedName ST_short
XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out XmlSchema parentSchema)
static XmlQualifiedName ST_unsignedByte
XmlSchemaSet InferSchema(XmlReader instanceDocument, XmlSchemaSet schemas)
void SetMinMaxOccurs(XmlSchemaElement el, bool setMaxOccurs)
InferenceOption TypeInference
InferenceOption _typeInference
static XmlQualifiedName ST_double
XmlSchemaElement FindElementRef(XmlSchemaObjectCollection elements, string elementName, string nsURI)
static int DateTime(string s, bool bDate, bool bTime)
static XmlQualifiedName ST_unsignedInt
static XmlQualifiedName ST_integer
XmlSchemaElement CreateNewElementforChoice(XmlSchemaElement copyElement)
XmlSchemaType GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType)
XmlSchemaSet InferSchema1(XmlReader instanceDocument, XmlSchemaSet schemas)
void MakeExistingAttributesOptional(XmlSchemaComplexType ct, XmlSchemaObjectCollection attributesInInstance)
static XmlQualifiedName ST_dateTime
void InferElement(XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema)
static XmlQualifiedName ST_float
XmlSchemaElement AddElement(string localName, string prefix, string childURI, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection)
static XmlQualifiedName ST_gYearMonth
static XmlQualifiedName ST_duration
static XmlQualifiedName ST_int
static XmlQualifiedName ST_anySimpleType
void SwitchUseToOptional(XmlSchemaObjectCollection attributes, XmlSchemaObjectCollection attributesInInstance)
static XmlQualifiedName ST_byte
static int InferSimpleType(string s, ref bool bNeedsRangeCheck)
static XmlQualifiedName ST_string
readonly XmlNamespaceManager _namespaceManager
static int GetSchemaType(XmlQualifiedName qname)
void MoveAttributes(XmlSchemaSimpleContentExtension scExtension, XmlSchemaComplexType ct)
XmlSchemaSimpleContentExtension CheckSimpleContentExtension(XmlSchemaComplexType ct)
readonly NameTable _nametable
static XmlQualifiedName ST_time
void MoveAttributes(XmlSchemaComplexType ct, XmlSchemaSimpleContentExtension simpleContentExtension, bool bCreatingNewType)
int Add(XmlSchemaObject item)
void Insert(int index, XmlSchemaObject item)
XmlSerializerNamespaces Namespaces
override XmlSchemaObjectCollection Items
XmlSchema Reprocess(XmlSchema schema)
XmlSchemaObjectTable GlobalElements
bool Contains(string? targetNamespace)
XmlSchema? Add(string? targetNamespace, string schemaUri)
XmlSchemaObjectTable GlobalTypes
XmlSchemaObjectCollection Attributes
XmlQualifiedName BaseTypeName
override? XmlSchemaContent Content
static ? XmlSchemaSimpleType GetBuiltInSimpleType(XmlQualifiedName qualifiedName)
XmlSchemaDatatype? Datatype
static ? XmlSchemaComplexType GetBuiltInComplexType(XmlTypeCode typeCode)
XmlSchemaObjectCollection Includes
XmlSchemaForm ElementFormDefault
XmlSchemaObjectCollection Items
static uint ToUInt32(string s)
static int ToInt32(string s)
static short ToInt16(string s)
static string ToString(bool value)
static float ToSingle(string s)
static TimeSpan ToTimeSpan(string s)
static double ToDouble(string s)
static sbyte ToSByte(string s)
static DateTime ToDateTime(string s)
static ulong ToUInt64(string s)
static ushort ToUInt16(string s)
static byte ToByte(string s)
static long ToInt64(string s)
virtual ? string LookupNamespace(string prefix)
virtual void AddNamespace(string prefix, string uri)
static readonly XmlQualifiedName Empty
bool MoveToNextAttribute()
bool MoveToFirstAttribute()
XmlDateTimeSerializationMode