Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Dom / XmlImplementation.cs / 1 / 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
- ObjectQuery_EntitySqlExtensions.cs
- XamlPointCollectionSerializer.cs
- WinEventWrap.cs
- ParserOptions.cs
- SocketElement.cs
- StandardOleMarshalObject.cs
- MaterialGroup.cs
- StrongNameSignatureInformation.cs
- AutoResetEvent.cs
- TrackingWorkflowEventArgs.cs
- SerialStream.cs
- TypeToken.cs
- ResourceWriter.cs
- UniqueConstraint.cs
- SynchronizedRandom.cs
- WinEventQueueItem.cs
- JulianCalendar.cs
- AppDomainProtocolHandler.cs
- BrowsableAttribute.cs
- SQLGuidStorage.cs
- _NativeSSPI.cs
- DES.cs
- XmlUrlResolver.cs
- DBCSCodePageEncoding.cs
- CopyNamespacesAction.cs
- BinHexEncoding.cs
- PartManifestEntry.cs
- AuthenticateEventArgs.cs
- DictionaryBase.cs
- DragStartedEventArgs.cs
- OleDbConnection.cs
- MobileControlPersister.cs
- EncryptedPackage.cs
- ResourceCategoryAttribute.cs
- SerializationStore.cs
- SecurityContextSecurityTokenAuthenticator.cs
- WebColorConverter.cs
- MarkupWriter.cs
- HideDisabledControlAdapter.cs
- RoutedEventArgs.cs
- AssertHelper.cs
- CollectionViewSource.cs
- DocComment.cs
- X509ChainPolicy.cs
- TagPrefixAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- tibetanshape.cs
- MatrixStack.cs
- WCFBuildProvider.cs
- ComponentResourceManager.cs
- Duration.cs
- Polygon.cs
- Stack.cs
- DrawingContextWalker.cs
- SoapAttributes.cs
- EditingScopeUndoUnit.cs
- BindingSourceDesigner.cs
- SqlLiftIndependentRowExpressions.cs
- StandardBindingElementCollection.cs
- ConfigurationFileMap.cs
- VirtualDirectoryMappingCollection.cs
- HandlerMappingMemo.cs
- WebBrowserDesigner.cs
- ImmutableCommunicationTimeouts.cs
- ZipIOExtraFieldPaddingElement.cs
- ChannelPoolSettings.cs
- PenLineJoinValidation.cs
- PerformanceCounterLib.cs
- ActivationArguments.cs
- ISFClipboardData.cs
- RoutedEventValueSerializer.cs
- GenericParameterDataContract.cs
- IfJoinedCondition.cs
- ETagAttribute.cs
- TraceHwndHost.cs
- FrameworkRichTextComposition.cs
- DummyDataSource.cs
- SQLMoneyStorage.cs
- SizeChangedEventArgs.cs
- UnsafeNativeMethods.cs
- ClipboardProcessor.cs
- DictionaryContent.cs
- GeneralTransform2DTo3D.cs
- OdbcConnectionHandle.cs
- LogicalChannel.cs
- XmlEncApr2001.cs
- ProxyWebPart.cs
- httpserverutility.cs
- StreamInfo.cs
- DataGridItemAutomationPeer.cs
- ReaderOutput.cs
- ListViewItemSelectionChangedEvent.cs
- BitmapEffectGeneralTransform.cs
- DataControlFieldCollection.cs
- IInstanceTable.cs
- InplaceBitmapMetadataWriter.cs
- AppSettingsReader.cs
- StandardCommands.cs
- DbConnectionStringBuilder.cs
- NumberFunctions.cs