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
- LineVisual.cs
- WCFServiceClientProxyGenerator.cs
- AnnotationResourceCollection.cs
- externdll.cs
- StorageModelBuildProvider.cs
- KeyboardEventArgs.cs
- ColumnResizeAdorner.cs
- InkCanvasSelection.cs
- Win32.cs
- DbDeleteCommandTree.cs
- ResourceContainer.cs
- MultiAsyncResult.cs
- XmlDocumentFragment.cs
- SchemaLookupTable.cs
- MailAddressCollection.cs
- ScriptingWebServicesSectionGroup.cs
- ElementNotEnabledException.cs
- DataBindingCollectionConverter.cs
- nulltextcontainer.cs
- RelOps.cs
- Item.cs
- Win32PrintDialog.cs
- SessionIDManager.cs
- ScrollData.cs
- BasePropertyDescriptor.cs
- AccessKeyManager.cs
- SubMenuStyle.cs
- LogStore.cs
- InboundActivityHelper.cs
- Tuple.cs
- ContextMarshalException.cs
- ListBoxItemWrapperAutomationPeer.cs
- ListViewInsertedEventArgs.cs
- ScriptReference.cs
- WeakHashtable.cs
- LicenseProviderAttribute.cs
- odbcmetadatacolumnnames.cs
- MemberDomainMap.cs
- ModelPerspective.cs
- EdmItemError.cs
- SRDisplayNameAttribute.cs
- PolyBezierSegment.cs
- CapabilitiesUse.cs
- Keywords.cs
- RuleEngine.cs
- StandardToolWindows.cs
- DataTemplate.cs
- ClientConvert.cs
- ExclusiveTcpTransportManager.cs
- TypeLibConverter.cs
- RelatedPropertyManager.cs
- TableLayoutStyle.cs
- PropertyInfo.cs
- TableDetailsRow.cs
- ThumbButtonInfoCollection.cs
- Renderer.cs
- ThemeDirectoryCompiler.cs
- DataGridViewRowCollection.cs
- Select.cs
- GiveFeedbackEventArgs.cs
- Vector3DAnimation.cs
- PresentationAppDomainManager.cs
- Environment.cs
- ConditionChanges.cs
- SyndicationSerializer.cs
- AlphaSortedEnumConverter.cs
- GuidelineSet.cs
- HtmlImageAdapter.cs
- StopStoryboard.cs
- ConnectionOrientedTransportChannelFactory.cs
- TreeNodeEventArgs.cs
- TerminateDesigner.cs
- Effect.cs
- PackWebResponse.cs
- ZipIOCentralDirectoryFileHeader.cs
- MimeMapping.cs
- IIS7WorkerRequest.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- XmlNodeChangedEventArgs.cs
- XmlSchemaComplexType.cs
- StyleBamlRecordReader.cs
- InvalidWMPVersionException.cs
- PlaceHolder.cs
- TemporaryBitmapFile.cs
- ImageButton.cs
- FileUtil.cs
- ImageProxy.cs
- ChtmlPageAdapter.cs
- ApplicationServicesHostFactory.cs
- BezierSegment.cs
- Timer.cs
- ListViewSelectEventArgs.cs
- LogRestartAreaEnumerator.cs
- CodeDomLocalizationProvider.cs
- EmbeddedMailObject.cs
- basemetadatamappingvisitor.cs
- RequestCacheValidator.cs
- ErrorWrapper.cs
- MetadataArtifactLoaderCompositeResource.cs
- ImageUrlEditor.cs