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
- LassoHelper.cs
- CodeBlockBuilder.cs
- BreakRecordTable.cs
- WindowsListViewGroupHelper.cs
- BitmapEffectInput.cs
- RoutedUICommand.cs
- RuntimeArgumentHandle.cs
- RadialGradientBrush.cs
- PointHitTestParameters.cs
- CodePrimitiveExpression.cs
- StreamWriter.cs
- Attachment.cs
- ContextStaticAttribute.cs
- InfocardClientCredentials.cs
- PathFigure.cs
- Wow64ConfigurationLoader.cs
- BaseHashHelper.cs
- SudsCommon.cs
- RecordManager.cs
- EventTrigger.cs
- DataViewManagerListItemTypeDescriptor.cs
- AssemblyBuilder.cs
- BordersPage.cs
- XmlObjectSerializer.cs
- OracleBFile.cs
- AttachInfo.cs
- FileLogRecordStream.cs
- ApplicationTrust.cs
- Pkcs7Recipient.cs
- SharedPerformanceCounter.cs
- ArithmeticLiteral.cs
- ClientSideQueueItem.cs
- PasswordRecoveryAutoFormat.cs
- SourceSwitch.cs
- CLRBindingWorker.cs
- WithStatement.cs
- BehaviorDragDropEventArgs.cs
- ConfigurationConverterBase.cs
- Parameter.cs
- GridErrorDlg.cs
- CroppedBitmap.cs
- SectionRecord.cs
- TypeNameHelper.cs
- EntityContainer.cs
- COM2TypeInfoProcessor.cs
- RawStylusSystemGestureInputReport.cs
- DbConnectionHelper.cs
- CursorConverter.cs
- VisualSerializer.cs
- EnumBuilder.cs
- ToolStripContentPanelRenderEventArgs.cs
- TextSpan.cs
- HyperLinkDataBindingHandler.cs
- pingexception.cs
- FixedFlowMap.cs
- path.cs
- CodeNamespaceCollection.cs
- EventMappingSettings.cs
- TrackingServices.cs
- CommandLibraryHelper.cs
- BuildProvider.cs
- URLString.cs
- LiteralText.cs
- EnterpriseServicesHelper.cs
- GlobalEventManager.cs
- DockAndAnchorLayout.cs
- Policy.cs
- XmlQueryContext.cs
- ConnectionConsumerAttribute.cs
- SafeNativeMethods.cs
- AppDomainProtocolHandler.cs
- IdleTimeoutMonitor.cs
- GridViewRowPresenterBase.cs
- PageThemeCodeDomTreeGenerator.cs
- VoiceSynthesis.cs
- EntityViewContainer.cs
- SQlBooleanStorage.cs
- DesignTimeData.cs
- EventSourceCreationData.cs
- WindowsPen.cs
- EntityAdapter.cs
- DataBoundControlParameterTarget.cs
- DataGridCommandEventArgs.cs
- ConfigUtil.cs
- ParameterModifier.cs
- ObjectQuery.cs
- Oid.cs
- MenuScrollingVisibilityConverter.cs
- EmbeddedMailObject.cs
- PromptStyle.cs
- Rules.cs
- TableLayoutPanelCellPosition.cs
- UnsignedPublishLicense.cs
- OptimizedTemplateContentHelper.cs
- _Win32.cs
- returneventsaver.cs
- LockedHandleGlyph.cs
- ScriptServiceAttribute.cs
- XPathAxisIterator.cs
- ContextMenu.cs