Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlImplementation.cs / 1305376 / XmlImplementation.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Globalization; namespace System.Xml { // Provides methods for performing operations that are independent of any // particular instance of the document object model. public class XmlImplementation { private XmlNameTable nameTable; // Initializes a new instance of the XmlImplementation class. public XmlImplementation() : this( new NameTable() ) { } public XmlImplementation( XmlNameTable nt ) { nameTable = nt; } // Test if the DOM implementation implements a specific feature. public bool HasFeature(string strFeature, string strVersion) { if (String.Compare("XML", strFeature, StringComparison.OrdinalIgnoreCase) == 0) { if (strVersion == null || strVersion == "1.0" || strVersion == "2.0") return true; } return false; } // Creates a new XmlDocument. All documents created from the same // XmlImplementation object share the same name table. public virtual XmlDocument CreateDocument() { return new XmlDocument( this ); } internal XmlNameTable NameTable { get { return nameTable; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Globalization; namespace System.Xml { // Provides methods for performing operations that are independent of any // particular instance of the document object model. public class XmlImplementation { private XmlNameTable nameTable; // Initializes a new instance of the XmlImplementation class. public XmlImplementation() : this( new NameTable() ) { } public XmlImplementation( XmlNameTable nt ) { nameTable = nt; } // Test if the DOM implementation implements a specific feature. public bool HasFeature(string strFeature, string strVersion) { if (String.Compare("XML", strFeature, StringComparison.OrdinalIgnoreCase) == 0) { if (strVersion == null || strVersion == "1.0" || strVersion == "2.0") return true; } return false; } // Creates a new XmlDocument. All documents created from the same // XmlImplementation object share the same name table. public virtual XmlDocument CreateDocument() { return new XmlDocument( this ); } internal XmlNameTable NameTable { get { return nameTable; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkElementFactory.cs
- ConnectorMovedEventArgs.cs
- BridgeDataReader.cs
- AttachedPropertyMethodSelector.cs
- SqlRemoveConstantOrderBy.cs
- CLSCompliantAttribute.cs
- BoundingRectTracker.cs
- SQLGuidStorage.cs
- ContentValidator.cs
- PnrpPeerResolverBindingElement.cs
- DecoderNLS.cs
- RayHitTestParameters.cs
- ToolStripCustomTypeDescriptor.cs
- SuppressMergeCheckAttribute.cs
- Vector3DCollection.cs
- StringDictionary.cs
- EnterpriseServicesHelper.cs
- BindingCompleteEventArgs.cs
- RouteCollection.cs
- SecurityUtils.cs
- ExpressionSelection.cs
- ReverseQueryOperator.cs
- DefaultProxySection.cs
- SiteMap.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- _SslStream.cs
- RC2.cs
- IntPtr.cs
- GestureRecognizer.cs
- OutputScopeManager.cs
- WmlCommandAdapter.cs
- ServiceHttpModule.cs
- WSIdentityFaultException.cs
- xamlnodes.cs
- BackStopAuthenticationModule.cs
- DesignerLinkAdapter.cs
- InvalidDataContractException.cs
- IResourceProvider.cs
- OperationParameterInfoCollection.cs
- DbCommandDefinition.cs
- SmiContext.cs
- iisPickupDirectory.cs
- MethodImplAttribute.cs
- SymmetricAlgorithm.cs
- DNS.cs
- EncryptedXml.cs
- PageBreakRecord.cs
- DataGridViewCellValidatingEventArgs.cs
- EventProviderClassic.cs
- ValueQuery.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WebPartAddingEventArgs.cs
- ConditionalAttribute.cs
- TrackingProfileDeserializationException.cs
- BindStream.cs
- Localizer.cs
- SqlSupersetValidator.cs
- PolicyLevel.cs
- Visual3D.cs
- StaticResourceExtension.cs
- _AutoWebProxyScriptHelper.cs
- AttributeCollection.cs
- MimeTypeMapper.cs
- CreateUserErrorEventArgs.cs
- ToolStripButton.cs
- WindowsRichEditRange.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ModuleElement.cs
- BinaryFormatter.cs
- CheckoutException.cs
- SecurityPermission.cs
- HttpApplication.cs
- StreamReader.cs
- FunctionImportMapping.cs
- ApplicationDirectory.cs
- _emptywebproxy.cs
- Module.cs
- OrderedDictionaryStateHelper.cs
- XmlNodeReader.cs
- SourceFileInfo.cs
- ApplicationId.cs
- QuadTree.cs
- CustomValidator.cs
- Environment.cs
- PageContentCollection.cs
- UnitControl.cs
- StringStorage.cs
- SQLDoubleStorage.cs
- ListBase.cs
- Popup.cs
- Rights.cs
- SerializationSectionGroup.cs
- XmlAttributeProperties.cs
- SelectionItemProviderWrapper.cs
- ByteStack.cs
- WebConfigurationHostFileChange.cs
- HttpClientCertificate.cs
- SoapObjectWriter.cs
- CreatingCookieEventArgs.cs
- DesignOnlyAttribute.cs