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
- Documentation.cs
- SettingsSection.cs
- ConfigurationLocationCollection.cs
- EnumerableCollectionView.cs
- OleTxTransactionInfo.cs
- Calendar.cs
- CollectionViewGroupRoot.cs
- Single.cs
- ClientUrlResolverWrapper.cs
- ContainerControl.cs
- HandlerWithFactory.cs
- UiaCoreApi.cs
- RawStylusSystemGestureInputReport.cs
- AssemblyFilter.cs
- LicenseContext.cs
- UniformGrid.cs
- RevocationPoint.cs
- FileDialogCustomPlacesCollection.cs
- QueryPageSettingsEventArgs.cs
- MatrixTransform3D.cs
- LiteralSubsegment.cs
- ObjectContext.cs
- SynchronizationLockException.cs
- SectionInput.cs
- FlowPanelDesigner.cs
- CodeAttachEventStatement.cs
- CollectionView.cs
- SoapDocumentMethodAttribute.cs
- SettingsPropertyValueCollection.cs
- TextParagraph.cs
- TextTreeText.cs
- ResourceContainer.cs
- FamilyMapCollection.cs
- _ConnectOverlappedAsyncResult.cs
- RtfToXamlLexer.cs
- MobileControlsSection.cs
- Triangle.cs
- ClipboardProcessor.cs
- ColorMap.cs
- Localizer.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DetailsViewInsertedEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs
- SqlRewriteScalarSubqueries.cs
- InvalidDocumentContentsException.cs
- URL.cs
- ModelUIElement3D.cs
- PolyLineSegmentFigureLogic.cs
- IndicFontClient.cs
- PropertyFilterAttribute.cs
- _FtpControlStream.cs
- FirstMatchCodeGroup.cs
- ColorBlend.cs
- UserPreferenceChangingEventArgs.cs
- SettingsPropertyIsReadOnlyException.cs
- HotSpotCollection.cs
- MessageSecurityOverHttpElement.cs
- WebPartDescriptionCollection.cs
- PublisherIdentityPermission.cs
- bidPrivateBase.cs
- FillErrorEventArgs.cs
- ISAPIRuntime.cs
- TypeValidationEventArgs.cs
- TableLayoutStyle.cs
- ButtonBaseAdapter.cs
- RankException.cs
- SHA512CryptoServiceProvider.cs
- ArgumentsParser.cs
- WindowsTokenRoleProvider.cs
- _PooledStream.cs
- ActivationServices.cs
- _ShellExpression.cs
- DataObjectPastingEventArgs.cs
- WmlListAdapter.cs
- StandardCommands.cs
- DbConnectionClosed.cs
- GridViewRow.cs
- UnsafeCollabNativeMethods.cs
- SQLBytes.cs
- DrawingImage.cs
- DataTablePropertyDescriptor.cs
- PeerChannelListener.cs
- CodeVariableDeclarationStatement.cs
- InvokePattern.cs
- MasterPageBuildProvider.cs
- InputProcessorProfiles.cs
- DeclarativeCatalogPart.cs
- StringConverter.cs
- MimeMapping.cs
- DtdParser.cs
- ModifiableIteratorCollection.cs
- XmlDeclaration.cs
- XmlMemberMapping.cs
- XsdBuildProvider.cs
- SourceFileBuildProvider.cs
- CacheEntry.cs
- InstanceDescriptor.cs
- CellNormalizer.cs
- IntPtr.cs
- PresentationAppDomainManager.cs