Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MarkupProperty.cs
- MemberHolder.cs
- HtmlInputControl.cs
- InvokeHandlers.cs
- GeneralTransform3DGroup.cs
- HtmlInputReset.cs
- Command.cs
- InfoCardProofToken.cs
- BuildProvider.cs
- VirtualPathUtility.cs
- XsltContext.cs
- TextServicesLoader.cs
- ProbeMatches11.cs
- RelationshipConverter.cs
- ClientTarget.cs
- PtsHelper.cs
- IteratorAsyncResult.cs
- ThreadSafeList.cs
- NetworkAddressChange.cs
- OdbcFactory.cs
- QuaternionAnimationUsingKeyFrames.cs
- FileClassifier.cs
- Version.cs
- AttachedPropertyMethodSelector.cs
- TemplateField.cs
- OpacityConverter.cs
- CalendarDateChangedEventArgs.cs
- WizardPanel.cs
- DataGridViewHitTestInfo.cs
- CompositeDataBoundControl.cs
- ServiceOperationParameter.cs
- ChineseLunisolarCalendar.cs
- httpserverutility.cs
- BindingExpressionBase.cs
- ClipboardData.cs
- IgnoreDataMemberAttribute.cs
- PropertyItemInternal.cs
- DropSource.cs
- WebControlsSection.cs
- BitmapEffectRenderDataResource.cs
- GlyphsSerializer.cs
- EdmSchemaError.cs
- EditorReuseAttribute.cs
- PackageRelationship.cs
- AppDomainProtocolHandler.cs
- XsdDataContractImporter.cs
- ACE.cs
- ConfigXmlDocument.cs
- WebPartUtil.cs
- ProfilePropertySettingsCollection.cs
- TextSimpleMarkerProperties.cs
- ValidationPropertyAttribute.cs
- ExecutedRoutedEventArgs.cs
- _Events.cs
- DocumentPageView.cs
- JournalEntryStack.cs
- AudioBase.cs
- SchemaCollectionPreprocessor.cs
- WebReferencesBuildProvider.cs
- ObjectHandle.cs
- ToolStripMenuItem.cs
- DataServiceHostWrapper.cs
- SapiInterop.cs
- DiagnosticsElement.cs
- HMACRIPEMD160.cs
- ActivityContext.cs
- MutexSecurity.cs
- VirtualPathUtility.cs
- Section.cs
- SurrogateEncoder.cs
- SpecialFolderEnumConverter.cs
- StringResourceManager.cs
- Bold.cs
- CustomErrorsSectionWrapper.cs
- CacheAxisQuery.cs
- DirectionalLight.cs
- DataGridColumnCollection.cs
- DecimalAnimationBase.cs
- LicenseManager.cs
- ProfilePropertySettings.cs
- ProtocolElementCollection.cs
- DbConvert.cs
- embossbitmapeffect.cs
- HttpModulesSection.cs
- FacetValueContainer.cs
- ClonableStack.cs
- DataViewListener.cs
- Separator.cs
- IndexedEnumerable.cs
- XmlSchemaObjectTable.cs
- InheritedPropertyChangedEventArgs.cs
- Assert.cs
- ExpressionEditorAttribute.cs
- ScriptResourceInfo.cs
- EpmHelper.cs
- ThicknessKeyFrameCollection.cs
- XmlTypeMapping.cs
- ListBoxAutomationPeer.cs
- SqlTriggerContext.cs
- GcHandle.cs