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
- ScalarConstant.cs
- SingleConverter.cs
- ValidatorCollection.cs
- DocumentScope.cs
- InputManager.cs
- XmlSubtreeReader.cs
- EncryptedKey.cs
- Label.cs
- TextFormatter.cs
- PeerApplicationLaunchInfo.cs
- QilChoice.cs
- SafeRightsManagementQueryHandle.cs
- ToolboxService.cs
- DBCommand.cs
- WebPartDesigner.cs
- ThreadAbortException.cs
- ListControlConvertEventArgs.cs
- NativeMethods.cs
- RemotingException.cs
- XmlSchemaCollection.cs
- SmtpLoginAuthenticationModule.cs
- TemplateManager.cs
- ToolStripSystemRenderer.cs
- GeneralTransformGroup.cs
- DebugHandleTracker.cs
- _LazyAsyncResult.cs
- FilterException.cs
- ExpressionDumper.cs
- StatusBarPanel.cs
- AmbientProperties.cs
- AnnotationObservableCollection.cs
- MimeFormReflector.cs
- FlowDocumentPage.cs
- DiscreteKeyFrames.cs
- SqlComparer.cs
- GeometryDrawing.cs
- RayHitTestParameters.cs
- SecurityIdentifierConverter.cs
- DtdParser.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- MouseBinding.cs
- FileLevelControlBuilderAttribute.cs
- ToolboxBitmapAttribute.cs
- TemplatedControlDesigner.cs
- TextReader.cs
- XPathNavigatorReader.cs
- Span.cs
- Executor.cs
- CompressedStack.cs
- SoapCodeExporter.cs
- UserNamePasswordValidator.cs
- DataGridSortCommandEventArgs.cs
- CompilerErrorCollection.cs
- WindowsFormsLinkLabel.cs
- ContractListAdapter.cs
- ComponentResourceManager.cs
- MetadataItemEmitter.cs
- WebControl.cs
- CellConstant.cs
- ShaderEffect.cs
- cryptoapiTransform.cs
- Dispatcher.cs
- SecuritySessionSecurityTokenProvider.cs
- PathFigure.cs
- DetailsViewCommandEventArgs.cs
- ToolStripOverflowButton.cs
- InheritablePropertyChangeInfo.cs
- LogEntryUtils.cs
- UInt64.cs
- Formatter.cs
- XmlSerializerAssemblyAttribute.cs
- ConnectionPoolManager.cs
- EntitySetBase.cs
- OSEnvironmentHelper.cs
- hresults.cs
- ObjectCacheSettings.cs
- LayoutTable.cs
- FixedSOMTableCell.cs
- InkCollectionBehavior.cs
- DataGridViewRowCollection.cs
- CompilerInfo.cs
- GroupItemAutomationPeer.cs
- HtmlCalendarAdapter.cs
- HttpCookie.cs
- Soap12ServerProtocol.cs
- ClientTargetSection.cs
- DrawToolTipEventArgs.cs
- EndpointNotFoundException.cs
- ToolStripLocationCancelEventArgs.cs
- Triplet.cs
- ValueSerializer.cs
- ManagedCodeMarkers.cs
- ContentValidator.cs
- NCryptNative.cs
- TextEndOfLine.cs
- AppSettingsExpressionBuilder.cs
- PhysicalAddress.cs
- InvalidDataContractException.cs
- MailAddress.cs
- GridToolTip.cs