Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MenuItemBinding.cs
- ThrowHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- DataPager.cs
- EdgeProfileValidation.cs
- OdbcParameterCollection.cs
- XPathConvert.cs
- ConnectionPointCookie.cs
- XXXOnTypeBuilderInstantiation.cs
- ImageMetadata.cs
- DataGridViewButtonCell.cs
- TreeChangeInfo.cs
- CngKey.cs
- SafeTokenHandle.cs
- brushes.cs
- PrintEvent.cs
- ProgressiveCrcCalculatingStream.cs
- ElementsClipboardData.cs
- ListViewGroup.cs
- Popup.cs
- XmlSignatureProperties.cs
- MembershipUser.cs
- ExpandedProjectionNode.cs
- PackWebRequest.cs
- CodeDirectionExpression.cs
- ListBoxChrome.cs
- QueryAccessibilityHelpEvent.cs
- ImmutableAssemblyCacheEntry.cs
- ApplicationContext.cs
- ChameleonKey.cs
- RegexEditorDialog.cs
- SqlLiftIndependentRowExpressions.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ExternalException.cs
- Socket.cs
- FloatSumAggregationOperator.cs
- DiscoveryViaBehavior.cs
- SettingsPropertyNotFoundException.cs
- TableLayoutPanelCellPosition.cs
- SeekStoryboard.cs
- ProfilePropertyMetadata.cs
- PrintingPermission.cs
- RemoteWebConfigurationHost.cs
- SecurityDocument.cs
- BaseComponentEditor.cs
- DecimalSumAggregationOperator.cs
- AutoResizedEvent.cs
- SpecularMaterial.cs
- EntityConnectionStringBuilderItem.cs
- Renderer.cs
- TextEndOfParagraph.cs
- PerformanceCounterPermissionEntry.cs
- EncoderParameters.cs
- XmlWrappingReader.cs
- BitmapEffect.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Opcode.cs
- documentation.cs
- SoapSchemaMember.cs
- WebPartMovingEventArgs.cs
- SchemaTypeEmitter.cs
- FileRecordSequence.cs
- DetailsViewPagerRow.cs
- FolderBrowserDialog.cs
- InvalidComObjectException.cs
- Int32Storage.cs
- ToolStripComboBox.cs
- WebSysDisplayNameAttribute.cs
- PropertyCollection.cs
- LookupBindingPropertiesAttribute.cs
- LoggedException.cs
- LogRestartAreaEnumerator.cs
- SecurityHelper.cs
- hwndwrapper.cs
- ExtendedPropertyDescriptor.cs
- ICspAsymmetricAlgorithm.cs
- LocationUpdates.cs
- BitmapEffect.cs
- TypedElement.cs
- ExponentialEase.cs
- BulletDecorator.cs
- CodeNamespace.cs
- PageParserFilter.cs
- SqlDataSource.cs
- X509RawDataKeyIdentifierClause.cs
- StringPropertyBuilder.cs
- IDQuery.cs
- ServerValidateEventArgs.cs
- DecimalStorage.cs
- MetadataUtilsSmi.cs
- ArithmeticException.cs
- ValueCollectionParameterReader.cs
- NumberSubstitution.cs
- TreeViewHitTestInfo.cs
- DeflateEmulationStream.cs
- SystemMulticastIPAddressInformation.cs
- JoinTreeNode.cs
- Message.cs
- ObjectQueryState.cs
- x509utils.cs