26 writes to Form
System.Private.Xml (26)
System\Xml\Serialization\Mappings.cs (2)
173
newAccessor.
Form
= this.Form;
261
Form
= XmlSchemaForm.Qualified;
System\Xml\Serialization\SoapReflectionImporter.cs (4)
90
element.
Form
= XmlSchemaForm.Qualified;
130
element.
Form
= XmlSchemaForm.Qualified;
705
attribute.
Form
= XmlSchemaForm.Qualified; // attributes are always qualified since they're only used for encoded soap headers
720
element.
Form
= form;
System\Xml\Serialization\XmlReflectionImporter.cs (13)
227
element.
Form
= XmlSchemaForm.Qualified; // elements within soap:body are always qualified
292
element.
Form
= XmlSchemaForm.Qualified;
1519
arrayItemElement.
Form
= xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form;
1602
attribute.
Form
= a.XmlAttribute.Form;
1605
attribute.
Form
= XmlSchemaForm.Qualified;
1663
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1711
element.
Form
= elementFormDefault;
1749
arrayElement.
Form
= rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form;
1781
attribute.
Form
= a.XmlAttribute.Form;
1784
attribute.
Form
= XmlSchemaForm.Qualified;
1836
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1904
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1954
element.
Form
= elementFormDefault;
System\Xml\Serialization\XmlSchemaImporter.cs (7)
107
accessor.
Form
= XmlSchemaForm.Qualified;
178
accessor.
Form
= schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault;
243
accessor.
Form
= XmlSchemaForm.Qualified;
315
accessor.
Form
= XmlSchemaForm.Qualified;
319
accessor.
Form
= ElementForm(ns, element);
1254
arrayAccessor.
Form
= ElementForm(ns, element);
1631
accessor.
Form
= AttributeForm(ns, attribute);
79 references to Form
System.Private.Xml (79)
System\Xml\Serialization\Mappings.cs (5)
173
newAccessor.Form = this.
Form
;
830
if (a[i].Name != b[i].Name || a[i].Namespace != b[i].Namespace || a[i].
Form
!= b[i].
Form
|| a[i].IsNullable != b[i].IsNullable)
853
return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.
Form
== mapping.Attribute.
Form
);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
103
string elementNs = element.
Form
== XmlSchemaForm.Qualified ? element.Namespace! : string.Empty;
338
string? ns = element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : string.Empty;
763
string? ns = ele.
Form
== XmlSchemaForm.Qualified ? ele.Namespace : string.Empty;
813
string? ns = e!.
Form
== XmlSchemaForm.Qualified ? e.Namespace : string.Empty;
830
string? ns = element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : string.Empty;
1861
memberFound = XmlNodeEqual(Reader, attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (7)
84
string? ns = (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : string.Empty);
319
string? ns = element.Any && element.Name.Length == 0 ? null : (element.
Form
== XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty);
339
WriteNullTagLiteral(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : string.Empty);
774
Writer.WriteStartAttribute(null, attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty);
850
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
888
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
1199
WriteStartElement(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : string.Empty), mapping.IsSoap);
System\Xml\Serialization\XmlReflectionImporter.cs (14)
1520
CheckForm(arrayItemElement.
Form
, arrayElementNs != arrayItemElement.Namespace);
1603
if (attribute.
Form
== XmlSchemaForm.None && ns != attribute.Namespace)
1608
CheckForm(attribute.
Form
, ns != attribute.Namespace);
1613
if (attribute.
Form
== XmlSchemaForm.Qualified && attribute.Namespace != ns)
1668
CheckForm(element.
Form
, ns != element.Namespace);
1716
CheckForm(element.
Form
, ns != element.Namespace);
1754
CheckForm(arrayElement.
Form
, ns != arrayElement.Namespace);
1782
if (attribute.
Form
== XmlSchemaForm.None && ns != attribute.Namespace)
1787
CheckForm(attribute.
Form
, ns != attribute.Namespace);
1791
if (attribute.
Form
== XmlSchemaForm.Qualified && attribute.Namespace != ns)
1841
CheckForm(element.
Form
, ns != element.Namespace);
1909
CheckForm(element.
Form
, ns != element.Namespace);
1958
CheckForm(element.
Form
, ns != element.Namespace);
2014
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
System\Xml\Serialization\XmlSchemaExporter.cs (11)
243
element.Form = accessor.
Form
;
738
attribute.Form = accessor.
Form
== attributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
741
attribute.Form = accessor.
Form
== schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
751
attribute.Form = accessor.
Form
;
829
element.Form = accessor.
Form
;
839
element.Form = accessor.
Form
== elementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
842
element.Form = accessor.
Form
== schema.ElementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
892
if (item.
Form
!= XmlSchemaForm.None && item.
Form
!= XmlSchemaExporter.elementFormDefault)
System\Xml\Serialization\XmlSerializationReader.cs (7)
2364
string? expectedElement = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
2495
WriteIsStartTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2678
WriteXmlNodeEqual("Reader", element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
3715
WriteXmlNodeEqual("Reader", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "");
3780
qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : $"{(attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "")}:{attribute.Name}";
3992
string? ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
4211
string? ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
323
string? expectedElement = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
422
WriteIsStartTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
1855
WriteXmlNodeEqual("Reader", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "");
2006
qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : $"{(attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "")}:{attribute.Name}";
2215
string? ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
2474
string? ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationWriter.cs (11)
2630
WriteStartElement(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap);
2830
WriteEncodedNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
2832
WriteLiteralNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
2835
WriteEmptyTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
3309
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
3433
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
3479
WritePrimitive("WriteAttribute", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false);
3913
string? ns = element.Any && element.Name.Length == 0 ? null : (element.
Form
== XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : "");
3933
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
4251
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
4471
if ((element.
Form
== XmlSchemaForm.Unqualified && choiceNs.IsEmpty) || choiceNs.SequenceEqual(element.Namespace))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
391
WriteStartElement(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""), false);
567
WriteLiteralNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
570
WriteEmptyTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
1173
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
1319
string? ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
1381
WritePrimitive("WriteAttribute", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false);
1899
string? ns = element.Any && element.Name.Length == 0 ? null : (element.
Form
== XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : "");
1926
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2188
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2264
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)