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
- XmlSchemaCompilationSettings.cs
- HttpCapabilitiesSectionHandler.cs
- FixedSOMTableCell.cs
- WriteableBitmap.cs
- ModuleElement.cs
- DataGridItemAutomationPeer.cs
- VariableBinder.cs
- HttpHandlersSection.cs
- TrackingServices.cs
- ReferenceAssemblyAttribute.cs
- ProjectionPruner.cs
- ComboBoxRenderer.cs
- SoapExtensionStream.cs
- _HelperAsyncResults.cs
- ExpressionStringBuilder.cs
- SQLMoney.cs
- Brushes.cs
- WebCategoryAttribute.cs
- AQNBuilder.cs
- XmlSchemaComplexContentExtension.cs
- OptimisticConcurrencyException.cs
- NullReferenceException.cs
- RIPEMD160Managed.cs
- KnownIds.cs
- AsyncContentLoadedEventArgs.cs
- ConsoleCancelEventArgs.cs
- FileSystemInfo.cs
- sqlnorm.cs
- EncryptedData.cs
- VScrollBar.cs
- RoutedCommand.cs
- recordstatescratchpad.cs
- ParseHttpDate.cs
- TextTreeUndo.cs
- TreeViewDesigner.cs
- CorrelationTokenInvalidatedHandler.cs
- HtmlSelect.cs
- GiveFeedbackEvent.cs
- CellParagraph.cs
- MatrixValueSerializer.cs
- DPAPIProtectedConfigurationProvider.cs
- IApplicationTrustManager.cs
- EndOfStreamException.cs
- HttpRequestCacheValidator.cs
- KeyGestureValueSerializer.cs
- WorkItem.cs
- ArrayWithOffset.cs
- FontFamilyIdentifier.cs
- RegisteredHiddenField.cs
- HtmlAnchor.cs
- ScrollProperties.cs
- ProcessProtocolHandler.cs
- WindowsListViewItem.cs
- PointAnimationUsingPath.cs
- VersionedStreamOwner.cs
- FontResourceCache.cs
- ConfigurationLocation.cs
- HideDisabledControlAdapter.cs
- ServiceNameCollection.cs
- DataGridViewLayoutData.cs
- XamlSerializer.cs
- UIElementParaClient.cs
- XmlSchemaObjectTable.cs
- WizardDesigner.cs
- SqlFileStream.cs
- CrossContextChannel.cs
- TextTreeTextBlock.cs
- TextTreeNode.cs
- WebPartActionVerb.cs
- ByteStreamMessageEncodingElement.cs
- Button.cs
- __Filters.cs
- Throw.cs
- TcpHostedTransportConfiguration.cs
- DecimalAnimationBase.cs
- TimeSpan.cs
- PasswordBoxAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- TableAdapterManagerNameHandler.cs
- SmiGettersStream.cs
- SessionStateSection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- OleDbEnumerator.cs
- FrugalList.cs
- StickyNoteContentControl.cs
- HttpListenerPrefixCollection.cs
- BindingGroup.cs
- StorageScalarPropertyMapping.cs
- DataStreams.cs
- DataSysAttribute.cs
- Duration.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AuthenticationModuleElement.cs
- EmbeddedMailObject.cs
- TreeNodeSelectionProcessor.cs
- MetadataCache.cs
- CharEntityEncoderFallback.cs
- PerformanceCounterPermissionAttribute.cs
- LockingPersistenceProvider.cs
- ApplicationServiceHelper.cs