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
- SystemColors.cs
- DecimalKeyFrameCollection.cs
- InsufficientMemoryException.cs
- _LocalDataStore.cs
- ShaderEffect.cs
- ManualResetEvent.cs
- CommandDevice.cs
- ValidationErrorInfo.cs
- Model3DGroup.cs
- OciEnlistContext.cs
- TransactionScope.cs
- StorageFunctionMapping.cs
- DrawListViewSubItemEventArgs.cs
- ProcessRequestArgs.cs
- XPathSingletonIterator.cs
- SoapFormatterSinks.cs
- MeasurementDCInfo.cs
- LinearQuaternionKeyFrame.cs
- IndexerNameAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- HMACSHA384.cs
- CodeExpressionStatement.cs
- SqlRemoveConstantOrderBy.cs
- FixedTextView.cs
- SecUtil.cs
- BaseResourcesBuildProvider.cs
- DependencyPropertyValueSerializer.cs
- ProbeMatchesMessage11.cs
- InstallerTypeAttribute.cs
- TransportListener.cs
- XamlTypeMapper.cs
- Pool.cs
- Preprocessor.cs
- FontEditor.cs
- NamedPipeAppDomainProtocolHandler.cs
- WindowsSpinner.cs
- ObjectViewEntityCollectionData.cs
- LinqMaximalSubtreeNominator.cs
- CommandLibraryHelper.cs
- IisTraceWebEventProvider.cs
- PointIndependentAnimationStorage.cs
- IntegerFacetDescriptionElement.cs
- EncryptedKey.cs
- TimerExtension.cs
- DataObjectSettingDataEventArgs.cs
- CultureMapper.cs
- DragDropHelper.cs
- X509WindowsSecurityToken.cs
- ComboBox.cs
- EntitySetBase.cs
- BinaryFormatter.cs
- PropertyValueChangedEvent.cs
- DataPagerCommandEventArgs.cs
- MetafileHeader.cs
- PinnedBufferMemoryStream.cs
- ContextQuery.cs
- SystemEvents.cs
- XmlSchemaObjectTable.cs
- PeerChannelFactory.cs
- BlockCollection.cs
- XmlUTF8TextReader.cs
- NameTable.cs
- ValuePatternIdentifiers.cs
- MappingException.cs
- Configuration.cs
- MouseButtonEventArgs.cs
- ThousandthOfEmRealPoints.cs
- DuplicateWaitObjectException.cs
- DeviceContext.cs
- ContractNamespaceAttribute.cs
- FileNameEditor.cs
- ProtectedProviderSettings.cs
- _BasicClient.cs
- COM2ExtendedUITypeEditor.cs
- RoleManagerSection.cs
- GuidConverter.cs
- StorageEntitySetMapping.cs
- XamlPointCollectionSerializer.cs
- BlurBitmapEffect.cs
- Variant.cs
- SystemFonts.cs
- COM2PictureConverter.cs
- DirectionalLight.cs
- BufferedGraphicsManager.cs
- ErrorProvider.cs
- TextSegment.cs
- PingReply.cs
- SoapReflectionImporter.cs
- MouseBinding.cs
- Tuple.cs
- IisTraceListener.cs
- _ContextAwareResult.cs
- MenuAdapter.cs
- HTTPNotFoundHandler.cs
- SqlMethodCallConverter.cs
- ActiveXSite.cs
- RemoteWebConfigurationHost.cs
- ChildChangedEventArgs.cs
- LinearGradientBrush.cs
- ServiceDescriptionReflector.cs