Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlImplementation.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WasHostedComPlusFactory.cs
- DeferredElementTreeState.cs
- StyleCollectionEditor.cs
- TreeNodeEventArgs.cs
- ASCIIEncoding.cs
- ClassicBorderDecorator.cs
- ColorAnimation.cs
- RankException.cs
- ObjectViewListener.cs
- AffineTransform3D.cs
- ListViewHitTestInfo.cs
- CodeIdentifier.cs
- ContentDisposition.cs
- XmlSortKeyAccumulator.cs
- BrowserDefinitionCollection.cs
- Localizer.cs
- UserControlCodeDomTreeGenerator.cs
- BaseResourcesBuildProvider.cs
- XslTransform.cs
- SizeAnimationClockResource.cs
- TypeSemantics.cs
- LineGeometry.cs
- Inline.cs
- EncodingInfo.cs
- FilteredAttributeCollection.cs
- BreakSafeBase.cs
- TimeManager.cs
- ScalarConstant.cs
- TraceListener.cs
- ZipIOModeEnforcingStream.cs
- ErrorHandler.cs
- SqlInternalConnection.cs
- ServiceModelActivity.cs
- BinaryReader.cs
- XamlBuildTaskServices.cs
- HitTestDrawingContextWalker.cs
- ConstrainedDataObject.cs
- ControlParameter.cs
- EditorPartCollection.cs
- PassportAuthenticationEventArgs.cs
- IncrementalReadDecoders.cs
- XmlAttribute.cs
- EventHandlerList.cs
- coordinator.cs
- cache.cs
- FormViewInsertEventArgs.cs
- SoapTransportImporter.cs
- Thread.cs
- Exceptions.cs
- Monitor.cs
- IndicFontClient.cs
- SubpageParagraph.cs
- TextEditorCharacters.cs
- HelpInfo.cs
- FrameSecurityDescriptor.cs
- DrawingContextWalker.cs
- RelativeSource.cs
- NavigationExpr.cs
- ObjectDataSourceSelectingEventArgs.cs
- Rect.cs
- DrawItemEvent.cs
- XmlSerializerFaultFormatter.cs
- DateTimeConverter.cs
- ObjectSpanRewriter.cs
- HttpClientCredentialType.cs
- StylusButton.cs
- HttpVersion.cs
- CursorEditor.cs
- EnvelopedPkcs7.cs
- ComplexPropertyEntry.cs
- ExecutionContext.cs
- HtmlTableCellCollection.cs
- UntypedNullExpression.cs
- ModuleBuilderData.cs
- ObjectDataSourceStatusEventArgs.cs
- CodeGeneratorOptions.cs
- Mapping.cs
- TextRenderer.cs
- FrameworkElementFactory.cs
- ObjectDataSource.cs
- FormatException.cs
- SqlDelegatedTransaction.cs
- SqlWebEventProvider.cs
- XmlWhitespace.cs
- CustomAttributeFormatException.cs
- FilteredSchemaElementLookUpTable.cs
- Code.cs
- UnsafeNativeMethods.cs
- DataTable.cs
- ThemeDictionaryExtension.cs
- ByteAnimationBase.cs
- ConfigurationPermission.cs
- ObjectDataSource.cs
- DummyDataSource.cs
- PeerTransportListenAddressValidatorAttribute.cs
- DiagnosticsConfiguration.cs
- BindingValueChangedEventArgs.cs
- XPathNodeList.cs
- ApplicationDirectoryMembershipCondition.cs
- StickyNote.cs