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
- TextSpan.cs
- TextFragmentEngine.cs
- RijndaelManagedTransform.cs
- MessageQueueTransaction.cs
- UpDownEvent.cs
- FontWeights.cs
- ListBindableAttribute.cs
- CheckableControlBaseAdapter.cs
- DataGridViewLayoutData.cs
- XmlAttributeCollection.cs
- ProfileGroupSettingsCollection.cs
- VersionedStreamOwner.cs
- DbParameterCollection.cs
- UserValidatedEventArgs.cs
- SqlRowUpdatingEvent.cs
- BrowserCapabilitiesFactoryBase.cs
- MonthChangedEventArgs.cs
- DataListCommandEventArgs.cs
- querybuilder.cs
- Nodes.cs
- CachedPathData.cs
- SchemaTableOptionalColumn.cs
- DataControlButton.cs
- DecoderNLS.cs
- EntityModelSchemaGenerator.cs
- FixedSOMElement.cs
- PropertyConverter.cs
- BindingExpressionBase.cs
- SQLBinary.cs
- XmlResolver.cs
- UnitControl.cs
- SimpleTypeResolver.cs
- PackageRelationship.cs
- UriScheme.cs
- AppDomainFactory.cs
- IdnElement.cs
- ApplicationHost.cs
- JsonQNameDataContract.cs
- ContextQuery.cs
- NavigationWindowAutomationPeer.cs
- InstallerTypeAttribute.cs
- XamlReader.cs
- BuildManagerHost.cs
- SecurityTokenInclusionMode.cs
- EntityClassGenerator.cs
- BoolExpr.cs
- Crypto.cs
- CodeDOMUtility.cs
- DropShadowEffect.cs
- SettingsBindableAttribute.cs
- OdbcTransaction.cs
- FontCacheUtil.cs
- CounterSetInstance.cs
- FormsAuthenticationUserCollection.cs
- _DomainName.cs
- SQLInt32Storage.cs
- XmlSchemaComplexContentRestriction.cs
- GeneralTransform3DTo2D.cs
- WizardStepCollectionEditor.cs
- XmlSchemaSimpleContentExtension.cs
- XmlSchemaSimpleTypeUnion.cs
- SqlStream.cs
- StringBuilder.cs
- RawMouseInputReport.cs
- _FixedSizeReader.cs
- XPathNodeIterator.cs
- HttpProcessUtility.cs
- DataGridViewCellFormattingEventArgs.cs
- Attribute.cs
- TCPClient.cs
- AnonymousIdentificationModule.cs
- ServicePointManager.cs
- QilStrConcat.cs
- DesignOnlyAttribute.cs
- ReplyChannelBinder.cs
- X509Certificate.cs
- DrawListViewSubItemEventArgs.cs
- Internal.cs
- WebPartConnectionsCloseVerb.cs
- SaveLedgerEntryRequest.cs
- SpellerStatusTable.cs
- BitmapEffectInputData.cs
- SoapAttributeOverrides.cs
- Baml2006ReaderContext.cs
- _Events.cs
- RestHandler.cs
- Configuration.cs
- X509Certificate.cs
- ListItem.cs
- FigureHelper.cs
- BindingFormattingDialog.cs
- XmlSchemaAppInfo.cs
- FloaterBaseParaClient.cs
- ErrorFormatter.cs
- CapabilitiesAssignment.cs
- MasterPageBuildProvider.cs
- ImportCatalogPart.cs
- XmlValidatingReader.cs
- TextControl.cs