33 writes to Form
System.Xml (33)
System\Xml\Serialization\Mappings.cs (2)
146
newAccessor.
Form
= this.Form;
218
Form
= XmlSchemaForm.Qualified;
System\Xml\Serialization\SoapReflectionImporter.cs (4)
113
element.
Form
= XmlSchemaForm.Qualified;
156
element.
Form
= XmlSchemaForm.Qualified;
651
attribute.
Form
= XmlSchemaForm.Qualified; // attributes are always qualified since they're only used for encoded soap headers
665
element.
Form
= form;
System\Xml\Serialization\SoapSchemaImporter.cs (7)
74
accessor.
Form
= XmlSchemaForm.Qualified;
99
accessor.
Form
= XmlSchemaForm.Qualified;
155
accessor.
Form
= XmlSchemaForm.Qualified;
176
accessor.
Form
= XmlSchemaForm.None;
393
arrayAccessor.
Form
= XmlSchemaForm.None;
409
itemAccessor.
Form
= XmlSchemaForm.None;
462
itemAccessor.
Form
= XmlSchemaForm.None;
System\Xml\Serialization\XmlReflectionImporter.cs (13)
202
element.
Form
= XmlSchemaForm.Qualified; // elements within soap:body are always qualified
259
element.
Form
= XmlSchemaForm.Qualified;
1310
arrayItemElement.
Form
= xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form;
1384
attribute.
Form
= a.XmlAttribute.Form;
1386
attribute.
Form
= XmlSchemaForm.Qualified;
1440
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1483
element.
Form
= elementFormDefault;
1518
arrayElement.
Form
= rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form;
1546
attribute.
Form
= a.XmlAttribute.Form;
1548
attribute.
Form
= XmlSchemaForm.Qualified;
1594
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1651
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1699
element.
Form
= elementFormDefault;
System\Xml\Serialization\XmlSchemaImporter.cs (7)
144
accessor.
Form
= XmlSchemaForm.Qualified;
208
accessor.
Form
= schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault;
270
accessor.
Form
= XmlSchemaForm.Qualified;
329
accessor.
Form
= XmlSchemaForm.Qualified;
332
accessor.
Form
= ElementForm(ns, element);
1176
arrayAccessor.
Form
= ElementForm(ns, element);
1515
accessor.
Form
= AttributeForm(ns, attribute);
76 references to Form
System.Xml (76)
System\Xml\Serialization\Mappings.cs (5)
146
newAccessor.Form = this.
Form
;
735
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)
753
return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.
Form
== mapping.Attribute.
Form
);
System\Xml\Serialization\XmlCodeExporter.cs (10)
603
bool sameElementNs = arrayElement.
Form
== XmlSchemaForm.Unqualified || arrayElement.Namespace == ns;
605
bool defaultForm = arrayElement.
Form
!= XmlSchemaForm.Unqualified;
607
ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.
Form
, nestingLevel);
629
bool defaultForm = attribute.
Form
!= XmlSchemaForm.Qualified;
635
defaultForm ? XmlSchemaForm.None : attribute.
Form
);
654
bool defaultForm = element.
Form
!= XmlSchemaForm.Unqualified;
662
ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.
Form
, member.SequenceId);
675
ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.
Form
, member.SequenceId);
687
bool defaultForm = element.
Form
!= XmlSchemaForm.Unqualified;
688
ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.
Form
, member.SequenceId);
System\Xml\Serialization\XmlReflectionImporter.cs (14)
1311
CheckForm(arrayItemElement.
Form
, arrayElementNs != arrayItemElement.Namespace);
1385
if (attribute.
Form
== XmlSchemaForm.None && ns != attribute.Namespace) {
1389
CheckForm(attribute.
Form
, ns != attribute.Namespace);
1394
if (attribute.
Form
== XmlSchemaForm.Qualified && attribute.Namespace != ns) {
1444
CheckForm(element.
Form
, ns != element.Namespace);
1487
CheckForm(element.
Form
, ns != element.Namespace);
1522
CheckForm(arrayElement.
Form
, ns != arrayElement.Namespace);
1547
if (attribute.
Form
== XmlSchemaForm.None && ns != attribute.Namespace) {
1551
CheckForm(attribute.
Form
, ns != attribute.Namespace);
1555
if (attribute.
Form
== XmlSchemaForm.Qualified && attribute.Namespace != ns) {
1598
CheckForm(element.
Form
, ns != element.Namespace);
1655
CheckForm(element.
Form
, ns != element.Namespace);
1702
CheckForm(element.
Form
, ns != element.Namespace);
1751
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) {
System\Xml\Serialization\XmlSchemaExporter.cs (11)
239
element.Form = accessor.
Form
;
666
attribute.Form = accessor.
Form
== attributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
668
attribute.Form = accessor.
Form
== schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
676
attribute.Form = accessor.
Form
;
742
element.Form = accessor.
Form
;
751
element.Form = accessor.
Form
== elementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
753
element.Form = accessor.
Form
== schema.ElementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
870
if (item.
Form
!= XmlSchemaForm.None && item.
Form
!= XmlSchemaExporter.elementFormDefault)
System\Xml\Serialization\XmlSerializationReader.cs (7)
2233
string expectedElement = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
2351
WriteIsStartTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2513
WriteXmlNodeEqual("Reader", element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
3465
WriteXmlNodeEqual("Reader", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "");
3524
qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : (attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "") + ":" + attribute.Name;
3714
string ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
3906
string ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
321
string expectedElement = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
442
WriteIsStartTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
1895
WriteXmlNodeEqual("Reader", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "");
2064
qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : (attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "") + ":" + attribute.Name;
2264
string ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
2525
string ns = e.
Form
== XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationWriter.cs (11)
1628
WriteStartElement(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap);
1804
WriteEncodedNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
1806
WriteLiteralNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
1809
WriteEmptyTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
2226
string ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty;
2330
string ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty;
2369
WritePrimitive("WriteAttribute", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false);
2748
string ns = element.Any && element.Name.Length == 0 ? null : (element.
Form
== XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : "");
2766
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
3048
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
3210
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
365
WriteStartElement(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""), false);
525
WriteLiteralNullTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
528
WriteEmptyTag(element.Name, (element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : ""));
1125
string ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty;
1287
string ns = attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty;
1347
WritePrimitive("WriteAttribute", attribute.Name, attribute.
Form
== XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false);
1847
string ns = element.Any && element.Name.Length == 0 ? null : (element.
Form
== XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : "");
1873
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2125
WriteLiteralNullTag(element.Name, element.
Form
== XmlSchemaForm.Qualified ? element.Namespace : "");
2191
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) {