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
- HtmlLink.cs
- ListViewEditEventArgs.cs
- QueuePropertyVariants.cs
- RoutedEventValueSerializer.cs
- DrawingBrush.cs
- TransactionManager.cs
- XmlWrappingReader.cs
- DataGridViewLinkColumn.cs
- SystemWebSectionGroup.cs
- LongTypeConverter.cs
- XpsThumbnail.cs
- ServiceChannel.cs
- RegexCompiler.cs
- securestring.cs
- SqlDataSourceEnumerator.cs
- SharedStream.cs
- ErrorProvider.cs
- FacetDescriptionElement.cs
- ComponentChangedEvent.cs
- SessionStateItemCollection.cs
- OdbcInfoMessageEvent.cs
- SubMenuStyleCollection.cs
- XPathNodeList.cs
- _AutoWebProxyScriptEngine.cs
- ServiceOperationParameter.cs
- ActivityTrace.cs
- FormsAuthenticationTicket.cs
- QuaternionAnimation.cs
- InheritanceRules.cs
- TableLayoutColumnStyleCollection.cs
- XPathNode.cs
- FieldAccessException.cs
- HttpCacheVaryByContentEncodings.cs
- StateMachine.cs
- SamlConstants.cs
- FormViewInsertEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- TreeViewCancelEvent.cs
- httpapplicationstate.cs
- CodeDomSerializerBase.cs
- PropertyGridEditorPart.cs
- baseaxisquery.cs
- DBBindings.cs
- WpfKnownType.cs
- SHA384Managed.cs
- BitmapData.cs
- DataSourceHelper.cs
- HtmlValidatorAdapter.cs
- XmlDataSource.cs
- WorkflowMarkupElementEventArgs.cs
- DateTimeValueSerializer.cs
- GlyphTypeface.cs
- MimeTypeAttribute.cs
- SplitContainer.cs
- RepeaterItemEventArgs.cs
- ValidatorCollection.cs
- BaseUriHelper.cs
- IndexerNameAttribute.cs
- SocketPermission.cs
- BrowserInteropHelper.cs
- DateTimeOffset.cs
- Function.cs
- CheckPair.cs
- TextBoxBaseDesigner.cs
- ComponentCollection.cs
- StyleSheetRefUrlEditor.cs
- ChannelProtectionRequirements.cs
- QilTernary.cs
- ContextProperty.cs
- ParameterCollection.cs
- ErrorView.xaml.cs
- MultiView.cs
- WebBrowserProgressChangedEventHandler.cs
- EmptyReadOnlyDictionaryInternal.cs
- SimpleType.cs
- TimersDescriptionAttribute.cs
- SHA384Managed.cs
- ColumnBinding.cs
- XmlTypeMapping.cs
- HtmlTableCell.cs
- VectorValueSerializer.cs
- ProfileSettings.cs
- StopStoryboard.cs
- FusionWrap.cs
- DefaultExpression.cs
- UInt32Converter.cs
- CommandTreeTypeHelper.cs
- IdnMapping.cs
- MenuEventArgs.cs
- FileIOPermission.cs
- MessageQueueCriteria.cs
- FontStretchConverter.cs
- CollectionViewGroupRoot.cs
- TabletDeviceInfo.cs
- ListViewItem.cs
- PartManifestEntry.cs
- TextDecorationCollection.cs
- DrawingVisualDrawingContext.cs
- ControlParameter.cs
- CommonRemoteMemoryBlock.cs