Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- IOException.cs
- TokenBasedSetEnumerator.cs
- SignedPkcs7.cs
- OdbcRowUpdatingEvent.cs
- ThicknessAnimationBase.cs
- InkPresenter.cs
- PageTheme.cs
- DiffuseMaterial.cs
- ImageBrush.cs
- _TimerThread.cs
- ResourceReferenceExpression.cs
- EnumBuilder.cs
- Int32Rect.cs
- SessionStateSection.cs
- BooleanToVisibilityConverter.cs
- adornercollection.cs
- RuntimeHelpers.cs
- CollectionViewGroup.cs
- XPathNodeList.cs
- MultiDataTrigger.cs
- XmlDataSource.cs
- BitmapEffectGeneralTransform.cs
- _SpnDictionary.cs
- AspProxy.cs
- ClientOptions.cs
- Solver.cs
- SystemResourceKey.cs
- validationstate.cs
- ToolStripSplitStackLayout.cs
- SQLRoleProvider.cs
- CounterCreationDataCollection.cs
- SqlErrorCollection.cs
- ErrorHandler.cs
- TrustVersion.cs
- Hyperlink.cs
- BoundsDrawingContextWalker.cs
- RefreshEventArgs.cs
- PassportAuthentication.cs
- TriggerActionCollection.cs
- EdmProperty.cs
- AdjustableArrowCap.cs
- OneOfConst.cs
- Camera.cs
- regiisutil.cs
- _AuthenticationState.cs
- Block.cs
- UInt16.cs
- SwitchCase.cs
- SyndicationSerializer.cs
- ExpressionPrefixAttribute.cs
- GradientSpreadMethodValidation.cs
- SqlConnectionManager.cs
- BaseCollection.cs
- IdentityReference.cs
- DataRow.cs
- HyperLink.cs
- XmlSchemaAttributeGroupRef.cs
- SqlConnectionHelper.cs
- AssemblyInfo.cs
- HttpWebResponse.cs
- SizeAnimationBase.cs
- CompiledIdentityConstraint.cs
- CellPartitioner.cs
- WebHttpBindingCollectionElement.cs
- WebPart.cs
- _AcceptOverlappedAsyncResult.cs
- EntityParameterCollection.cs
- ExtensionSimplifierMarkupObject.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FormViewPagerRow.cs
- StorageRoot.cs
- SimpleTextLine.cs
- CommandPlan.cs
- FontCacheUtil.cs
- DrawingContext.cs
- FixedSOMContainer.cs
- GridView.cs
- Helper.cs
- SocketElement.cs
- FontSource.cs
- MessageHeaderT.cs
- SettingsPropertyNotFoundException.cs
- WebHeaderCollection.cs
- WebPartMenuStyle.cs
- FontCacheLogic.cs
- SelectedGridItemChangedEvent.cs
- LOSFormatter.cs
- TraceXPathNavigator.cs
- SafeCryptoHandles.cs
- Pen.cs
- NativeMethods.cs
- MappingSource.cs
- RegexRunnerFactory.cs
- EventLogPermissionEntryCollection.cs
- DataControlPagerLinkButton.cs
- versioninfo.cs
- CreateRefExpr.cs
- DataGridPageChangedEventArgs.cs
- Control.cs
- TextRangeBase.cs