Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SafeFileMappingHandle.cs
- Logging.cs
- ComplexLine.cs
- ContentPropertyAttribute.cs
- Events.cs
- ContentType.cs
- SQLUtility.cs
- WindowsGraphics.cs
- Button.cs
- SystemInformation.cs
- Attributes.cs
- WeakRefEnumerator.cs
- PagesSection.cs
- FileStream.cs
- UriParserTemplates.cs
- OperationDescriptionCollection.cs
- XamlReader.cs
- ContainsRowNumberChecker.cs
- SettingsAttributes.cs
- SeekStoryboard.cs
- DataGridHeaderBorder.cs
- BitmapFrameDecode.cs
- HeaderUtility.cs
- UpdatePanelTriggerCollection.cs
- FixedDocument.cs
- SystemFonts.cs
- BindingContext.cs
- PeerObject.cs
- GridViewSortEventArgs.cs
- RTLAwareMessageBox.cs
- InternalControlCollection.cs
- GridView.cs
- XmlTypeAttribute.cs
- StateRuntime.cs
- TrustLevelCollection.cs
- GifBitmapDecoder.cs
- DataRecordInternal.cs
- ScalarConstant.cs
- Visual3DCollection.cs
- GridViewDeletedEventArgs.cs
- OracleCommand.cs
- RectangleConverter.cs
- WindowsHyperlink.cs
- AtomMaterializer.cs
- EncryptedPackageFilter.cs
- PeerCollaboration.cs
- Pkcs7Signer.cs
- ChildDocumentBlock.cs
- Hyperlink.cs
- ListViewInsertionMark.cs
- GetWinFXPath.cs
- GeneralTransform3DTo2D.cs
- AspNetHostingPermission.cs
- Highlights.cs
- SwitchElementsCollection.cs
- ViewgenContext.cs
- XXXOnTypeBuilderInstantiation.cs
- JsonQNameDataContract.cs
- WebBrowserPermission.cs
- IssuanceLicense.cs
- KnownBoxes.cs
- XmlDataSourceView.cs
- ToolStripContentPanel.cs
- CommonObjectSecurity.cs
- ScaleTransform.cs
- Marshal.cs
- BamlBinaryReader.cs
- BamlTreeUpdater.cs
- CmsInterop.cs
- ToolStripSystemRenderer.cs
- Signature.cs
- RemoteWebConfigurationHostStream.cs
- AdPostCacheSubstitution.cs
- MetadataCache.cs
- SettingsPropertyCollection.cs
- HScrollProperties.cs
- objectresult_tresulttype.cs
- KnownTypeAttribute.cs
- ServiceControllerDesigner.cs
- PtsHost.cs
- XmlReaderSettings.cs
- OracleEncoding.cs
- ThrowHelper.cs
- StreamingContext.cs
- LicenseManager.cs
- RawStylusInputReport.cs
- DeviceSpecificChoiceCollection.cs
- DataGridTableStyleMappingNameEditor.cs
- FixedSOMElement.cs
- CodeCatchClauseCollection.cs
- RegexBoyerMoore.cs
- Point4DConverter.cs
- TimeoutValidationAttribute.cs
- WebPartTransformerAttribute.cs
- WindowsFormsSectionHandler.cs
- LoginName.cs
- WpfWebRequestHelper.cs
- webeventbuffer.cs
- diagnosticsswitches.cs
- StringComparer.cs