177 references to XmlReservedNs
System.Xml (177)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
327this.nsxmlns = this.xnt.Add(XmlReservedNs.NsXmlNs); 345AddInitNamespace(this.xml, this.xnt.Add(XmlReservedNs.NsXml));
System\Xml\Cache\XPathDocumentBuilder.cs (2)
104this.idxNmsp = NewNamespaceNode(out this.pageNmsp, this.nameTable.Add("xml"), this.nameTable.Add(XmlReservedNs.NsXml), null, 0); 444Debug.Assert(!prefix.Equals("xmlns") && !namespaceName.Equals(XmlReservedNs.NsXmlNs));
System\Xml\Core\XmlEventCache.cs (1)
217writer.WriteAttributeString("xmlns", page[idxEvent].String1, XmlReservedNs.NsXmlNs, page[idxEvent].String2);
System\Xml\Core\XmlSubtreeReader.cs (1)
99xmlnsUri = reader.NameTable.Add(XmlReservedNs.NsXmlNs);
System\Xml\Core\XmlTextReaderImpl.cs (6)
4601attr.ns = nameTable.Add( XmlReservedNs.NsXmlNs ); 7013if ( uri == XmlReservedNs.NsXmlNs ) { 7021else if ( uri == XmlReservedNs.NsXml ) { 8134nameTable.Add( XmlReservedNs.NsXs ); // Note: this is equal to XmlReservedNs.NsXsd in Everett 8135nameTable.Add( XmlReservedNs.NsXsi ); 8136nameTable.Add( XmlReservedNs.NsDataType );
System\Xml\Core\XmlTextWriter.cs (5)
498if (ns == XmlReservedNs.NsXmlNs && prefix == null && localName != "xmlns") { 518if (XmlReservedNs.NsXmlNs != ns && ns != null) { 532if (XmlReservedNs.NsXmlNs != ns && ns != null) { 1190if (XmlReservedNs.NsXmlNs == ns) { 1440if (XmlReservedNs.NsXml != ns) {
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
715if ( schemaTypeObj != null && schemaTypeObj.QualifiedName.Namespace == XmlReservedNs.NsXs ) {
System\Xml\Core\XmlWellFormedWriter.cs (17)
272nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs, NamespaceKind.Special); 273nsStack[1].Set("xml", XmlReservedNs.NsXml, NamespaceKind.Special); 576if (!(localName == "xmlns" && namespaceName == XmlReservedNs.NsXmlNs)) 594if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 611if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 619if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXml) { 689writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs); 701if (value == XmlReservedNs.NsXmlNs || (value == XmlReservedNs.NsXml && curDeclPrefix != "xml")) { 716writer.WriteStartAttribute("xmlns", curDeclPrefix, XmlReservedNs.NsXmlNs); 736writer.WriteStartAttribute("xml", "space", XmlReservedNs.NsXml); 743writer.WriteStartAttribute("xml", "lang", XmlReservedNs.NsXml); 1432if ((ns == XmlReservedNs.NsXml && prefix != "xml") || 1433(ns == XmlReservedNs.NsXmlNs && prefix != "xmlns")) { 1502if ((ns == XmlReservedNs.NsXml && prefix != "xml") || 1503(ns == XmlReservedNs.NsXmlNs && prefix != "xmlns")) { 1508if (ns != XmlReservedNs.NsXml) {
System\Xml\Core\XmlWellFormedWriterAsync.cs (10)
393if (!(localName == "xmlns" && namespaceName == XmlReservedNs.NsXmlNs)) 411if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 428if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXmlNs) { 436if (namespaceName.Length > 0 && namespaceName != XmlReservedNs.NsXml) { 544await writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false); 556if (value == XmlReservedNs.NsXmlNs || (value == XmlReservedNs.NsXml && curDeclPrefix != "xml")) { 571await writer.WriteStartAttributeAsync("xmlns", curDeclPrefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false); 591await writer.WriteStartAttributeAsync("xml", "space", XmlReservedNs.NsXml).ConfigureAwait(false); 598await writer.WriteStartAttributeAsync("xml", "lang", XmlReservedNs.NsXml).ConfigureAwait(false);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (2)
95writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs); 98writer.WriteStartAttribute("xmlns", prefix, XmlReservedNs.NsXmlNs);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (2)
33await writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false); 36await writer.WriteStartAttributeAsync("xmlns", prefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false);
System\Xml\Core\XmlWriter.cs (2)
588WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns); 591WriteAttributeString("xmlns", prefix, XmlReservedNs.NsXmlNs, ns);
System\Xml\Core\XmlWriterAsync.cs (2)
515await WriteAttributeStringAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false); 518await WriteAttributeStringAsync("xmlns", prefix, XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false);
System\Xml\Core\XsdValidatingReader.cs (3)
160NsXmlNs = coreReaderNameTable.Add(XmlReservedNs.NsXmlNs); 161NsXs = coreReaderNameTable.Add(XmlReservedNs.NsXs); 162NsXsi = coreReaderNameTable.Add(XmlReservedNs.NsXsi);
System\Xml\Dom\DocumentSchemaValidator.cs (2)
77NsXmlNs = nameTable.Add(XmlReservedNs.NsXmlNs); 78NsXsi = nameTable.Add(XmlReservedNs.NsXsi);
System\Xml\Dom\XmlDocument.cs (2)
114strReservedXmlns = nt.Add( XmlReservedNs.NsXmlNs ); 115strReservedXml = nt.Add( XmlReservedNs.NsXml );
System\Xml\Dom\XmlNodeReader.cs (7)
737return nameTable.Add( XmlReservedNs.NsXmlNs ); 740return nameTable.Add( XmlReservedNs.NsXml ); 779return nameTable.Add( XmlReservedNs.NsXmlNs ); 782return nameTable.Add( XmlReservedNs.NsXml ); 795if ( namespaceName == XmlReservedNs.NsXmlNs ) { 798if ( namespaceName == XmlReservedNs.NsXml ) { 881dict.Add( nameTable.Add( "xml" ), nameTable.Add( XmlReservedNs.NsXml ) );
System\Xml\Schema\BaseProcessor.cs (1)
31NsXml = nameTable.Add(XmlReservedNs.NsXml);
System\Xml\Schema\DataTypeImplementation.cs (10)
112internal static XmlQualifiedName QnAnySimpleType = new XmlQualifiedName("anySimpleType",XmlReservedNs.NsXs); 113internal static XmlQualifiedName QnAnyType = new XmlQualifiedName("anyType",XmlReservedNs.NsXs); 215qname = new XmlQualifiedName(sdm.Name, XmlReservedNs.NsXs); 229qname = new XmlQualifiedName(sdm.Name, XmlReservedNs.NsXs); 246XmlSchemaSimpleType derivedType = (XmlSchemaSimpleType) builtinTypes[new XmlQualifiedName(sdm.Name, XmlReservedNs.NsXs)]; 253baseType = (XmlSchemaSimpleType) builtinTypes[new XmlQualifiedName( ((SchemaDatatypeMap)(c_XsdTypes[sdm.ParentIndex])).Name, XmlReservedNs.NsXs)]; 259qname = new XmlQualifiedName("anyAtomicType", XmlReservedNs.NsXQueryDataType); 267qname = new XmlQualifiedName("untypedAtomic", XmlReservedNs.NsXQueryDataType); 275qname = new XmlQualifiedName("yearMonthDuration", XmlReservedNs.NsXQueryDataType); 283qname = new XmlQualifiedName("dayTimeDuration", XmlReservedNs.NsXQueryDataType);
System\Xml\Schema\Inference\Infer.cs (3)
317if (childURI == XmlReservedNs.NsXml) 1224if (xtr.NamespaceURI == XmlReservedNs.NsXmlNs) 1229else if (xtr.NamespaceURI == XmlReservedNs.NsXsi)
System\Xml\Schema\Parser.cs (2)
353attr = dummyDocument.CreateAttribute(string.Empty, xmlns, XmlReservedNs.NsXmlNs); 356attr = dummyDocument.CreateAttribute(xmlns, prefix, XmlReservedNs.NsXmlNs);
System\Xml\Schema\Preprocessor.cs (12)
89NsXsi = NameTable.Add(XmlReservedNs.NsXsi); 283if (importNS == XmlReservedNs.NsXml) { 370tempSchema.TargetNamespace = XmlReservedNs.NsXml; 371tempSchema.Namespaces.Add("xml", XmlReservedNs.NsXml); 375lang.SchemaTypeName = new XmlQualifiedName("language", XmlReservedNs.NsXs); 380xmlbase.SchemaTypeName = new XmlQualifiedName("anyURI", XmlReservedNs.NsXs); 387r.BaseTypeName = new XmlQualifiedName("NCName", XmlReservedNs.NsXs); 402langRef.RefName = new XmlQualifiedName("lang", XmlReservedNs.NsXml); 405spaceRef.RefName = new XmlQualifiedName("space", XmlReservedNs.NsXml); 408baseRef.RefName = new XmlQualifiedName("base", XmlReservedNs.NsXml); 425referenceNamespaces.Add(XmlReservedNs.NsXs,XmlReservedNs.NsXs);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
131if (include is XmlSchemaImport && ((XmlSchemaImport)include).Namespace == XmlReservedNs.NsXml) { 176if (include is XmlSchemaImport && ((XmlSchemaImport)include).Namespace == XmlReservedNs.NsXml) { 233referenceNamespaces.Add(XmlReservedNs.NsXs,XmlReservedNs.NsXs); 715if (schema.TargetNamespace == XmlReservedNs.NsXsi) {
System\Xml\Schema\SchemaNames.cs (9)
167NsDataType = nameTable.Add(XmlReservedNs.NsDataType); 168NsDataTypeAlias = nameTable.Add(XmlReservedNs.NsDataTypeAlias); 169NsDataTypeOld = nameTable.Add(XmlReservedNs.NsDataTypeOld); 170NsXml = nameTable.Add(XmlReservedNs.NsXml); 171NsXmlNs = nameTable.Add(XmlReservedNs.NsXmlNs); 172NsXdr = nameTable.Add(XmlReservedNs.NsXdr); 173NsXdrAlias = nameTable.Add(XmlReservedNs.NsXdrAlias); 174NsXs = nameTable.Add(XmlReservedNs.NsXs); 175NsXsi = nameTable.Add(XmlReservedNs.NsXsi);
System\Xml\Schema\SchemaNamespacemanager.cs (2)
22return XmlReservedNs.NsXml; 37if (ns == XmlReservedNs.NsXml) { //Special case for the XML namespace
System\Xml\Schema\XmlSchema.cs (7)
35public const string Namespace = XmlReservedNs.NsXs; 40public const string InstanceNamespace = XmlReservedNs.NsXsi; 178ignoreXS = this.Namespaces.Namespaces["xs"] != null || this.Namespaces.Namespaces.ContainsValue(XmlReservedNs.NsXs); 181if (!ignoreXS && namespaceManager.LookupPrefix(XmlReservedNs.NsXs) == null && 183ns.Add("xs", XmlReservedNs.NsXs); 193if (serializerNS["xs"] == null && !serializerNS.ContainsValue(XmlReservedNs.NsXs)) { //Prefix xs not defined AND schema namespace not already mapped to a prefix 194serializerNS.Add("xs", XmlReservedNs.NsXs);
System\Xml\Schema\XmlSchemaAttribute.cs (1)
137if (attributeType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaComplexType.cs (1)
49untypedAnyType.SetQualifiedName(new XmlQualifiedName("untypedAny", XmlReservedNs.NsXQueryDataType));
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
22static XmlSchemaSimpleType languageType = DatatypeImplementation.GetSimpleTypeFromXsdType(new XmlQualifiedName("language",XmlReservedNs.NsXs));
System\Xml\Schema\XmlSchemaElement.cs (1)
217if (elementType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaSet.cs (5)
654if (schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) { //it has xs:anyType 666if (schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) { //it has xs:anyType 926if (schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) { //it has xs:anyType 938if (schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) { //it has xs:anyType 1315if (qname.Namespace == XmlReservedNs.NsXml) {
System\Xml\Schema\XmlSchemaType.cs (1)
129if (baseSchemaType.QualifiedName.Namespace == XmlReservedNs.NsXs) {
System\Xml\Schema\XmlSchemaValidator.cs (8)
213NsXs = nameTable.Add(XmlReservedNs.NsXs); 214NsXsi = nameTable.Add(XmlReservedNs.NsXsi); 215NsXmlNs = nameTable.Add(XmlReservedNs.NsXmlNs); 216NsXml = nameTable.Add(XmlReservedNs.NsXml); 2072tempXsiTypeSO.SetQualifiedName(new XmlQualifiedName("type", XmlReservedNs.NsXsi)); 2079tempxsiNilSO.SetQualifiedName(new XmlQualifiedName("nil", XmlReservedNs.NsXsi)); 2087tempxsiSLSO.SetQualifiedName(new XmlQualifiedName("schemaLocation", XmlReservedNs.NsXsi)); 2095tempxsiNoNsSLSO.SetQualifiedName(new XmlQualifiedName("noNamespaceSchemaLocation", XmlReservedNs.NsXsi));
System\Xml\Schema\XmlValueConverter.cs (2)
557else if (name.Namespace == XmlReservedNs.NsXs) { 560else if (name.Namespace == XmlReservedNs.NsXQueryDataType) {
System\Xml\Schema\XsdValidator.cs (3)
72NsXmlNs = NameTable.Add(XmlReservedNs.NsXmlNs); 73NsXs = NameTable.Add(XmlReservedNs.NsXs); 74NsXsi = NameTable.Add(XmlReservedNs.NsXsi);
System\Xml\Serialization\Mappings.cs (2)
206Namespace = XmlReservedNs.NsXml; 210if (Namespace == XmlReservedNs.NsXml) {
System\Xml\Serialization\SchemaImporter.cs (1)
49if (!schemas.Contains(XmlReservedNs.NsXml)) {
System\Xml\Serialization\XmlSchemaExporter.cs (2)
627AddSchemaImport(XmlReservedNs.NsXml, ns); 632attribute.RefName = new XmlQualifiedName(accessor.Name, XmlReservedNs.NsXml);
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1480accessor.Namespace = XmlReservedNs.NsXml; 1489if (attribute.RefName.Namespace == XmlReservedNs.NsXml)
System\Xml\Serialization\XmlSchemas.cs (1)
635if (!SchemaSet.Contains(XmlReservedNs.NsXml)) {
System\Xml\Serialization\XmlSerializationReader.cs (2)
3462WriteXmlNodeEqual("Reader", attribute.Name, XmlReservedNs.NsXml); 3524qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : (attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "") + ":" + attribute.Name;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
1892WriteXmlNodeEqual("Reader", attribute.Name, XmlReservedNs.NsXml); 2064qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : (attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "") + ":" + attribute.Name;
System\Xml\Serialization\XmlSerializationWriter.cs (3)
365if (ns == XmlReservedNs.NsXml) { 840if (ns == XmlReservedNs.NsXml) { 866if (ns == XmlReservedNs.NsXml) {
System\Xml\ValidateNames.cs (3)
444return s.Equals(XmlReservedNs.NsXml) || s.Equals(XmlReservedNs.NsXmlNs); 550if (!ns.Equals(XmlReservedNs.NsXml)) {
System\Xml\XmlNamespacemanager.cs (3)
83nsdecls[1].Set( xmlNs, nameTable.Add( XmlReservedNs.NsXmlNs ), -1, -1 ); 84nsdecls[2].Set( xml, nameTable.Add( XmlReservedNs.NsXml ), 0, -1 ); 133if ( ( Ref.Equal( xml, prefix ) && !uri.Equals( XmlReservedNs.NsXml ) ) ) {
System\Xml\XPath\Internal\AttributeQuery.cs (1)
42Debug.Assert(! currentNode.NamespaceURI.Equals(XmlReservedNs.NsXmlNs));
System\Xml\XPath\XPathDocument.cs (1)
170xmlnsUri = this.nameTable.Get(XmlReservedNs.NsXmlNs);
System\Xml\XPath\XPathNavigator.cs (9)
380return XmlReservedNs.NsXml; 382return XmlReservedNs.NsXmlNs; 412else if (namespaceURI == XmlReservedNs.NsXml) 414else if (namespaceURI == XmlReservedNs.NsXmlNs) 437dict["xml"] = XmlReservedNs.NsXml; 488if (navClone.MoveToAttribute("lang", XmlReservedNs.NsXml)) 563return XmlReservedNs.NsXml; 565return XmlReservedNs.NsXmlNs; 1782string xmlnsUri = XmlReservedNs.NsXmlNs; // http://www.w3.org/2000/xmlns/
System\Xml\XPath\XPathNavigatorReader.cs (4)
184return this.NameTable.Add(XmlReservedNs.NsXmlNs); 235if (tempNav.MoveToAttribute(XPathNavigatorReader.space, XmlReservedNs.NsXml)) { 418if( namespaceURI == XmlReservedNs.NsXmlNs ) { 492if ( namespaceName == XmlReservedNs.NsXmlNs ) {