Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoWorkEventArgs.cs
- Command.cs
- JournalEntryStack.cs
- SafeUserTokenHandle.cs
- AxDesigner.cs
- SrgsGrammar.cs
- OrderedHashRepartitionEnumerator.cs
- SafeRightsManagementPubHandle.cs
- IdentityModelStringsVersion1.cs
- DefaultSerializationProviderAttribute.cs
- NamespaceExpr.cs
- Timer.cs
- WebResourceUtil.cs
- Claim.cs
- XmlSchemaCompilationSettings.cs
- LoadItemsEventArgs.cs
- ShapeTypeface.cs
- ScopelessEnumAttribute.cs
- COM2PropertyDescriptor.cs
- EDesignUtil.cs
- Matrix.cs
- ReferentialConstraint.cs
- FunctionDetailsReader.cs
- PermissionToken.cs
- SiteMapHierarchicalDataSourceView.cs
- DeviceContexts.cs
- StringCollection.cs
- TokenBasedSet.cs
- ArrayExtension.cs
- XmlEntityReference.cs
- RequestQueue.cs
- LogStream.cs
- FormatConvertedBitmap.cs
- WindowsRebar.cs
- EdmError.cs
- VisualTreeUtils.cs
- ClientScriptManager.cs
- WizardForm.cs
- CopyOnWriteList.cs
- ListBoxChrome.cs
- ButtonField.cs
- ListViewItemMouseHoverEvent.cs
- BaseCAMarshaler.cs
- SqlTrackingQuery.cs
- CheckPair.cs
- LoginName.cs
- UIElementHelper.cs
- X500Name.cs
- NullableFloatMinMaxAggregationOperator.cs
- Point3DKeyFrameCollection.cs
- DurableInstanceContextProvider.cs
- Decoder.cs
- ObjectQueryState.cs
- GroupStyle.cs
- RoutedUICommand.cs
- SelectionWordBreaker.cs
- WebPartMenu.cs
- ToolStripScrollButton.cs
- ServiceElementCollection.cs
- Permission.cs
- WorkflowEnvironment.cs
- ComPlusTypeLoader.cs
- CmsUtils.cs
- Region.cs
- OdbcConnectionPoolProviderInfo.cs
- SmtpNegotiateAuthenticationModule.cs
- BlobPersonalizationState.cs
- CollectionChangeEventArgs.cs
- HelpProvider.cs
- SwitchAttribute.cs
- SqlUserDefinedTypeAttribute.cs
- BindingElement.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CurrentChangingEventArgs.cs
- Connector.cs
- AttributeData.cs
- WebPartManagerInternals.cs
- EventlogProvider.cs
- ReachObjectContext.cs
- ForeignConstraint.cs
- _FtpControlStream.cs
- CopyAction.cs
- XPathParser.cs
- ProfileSection.cs
- MarginsConverter.cs
- KeyGesture.cs
- HttpModulesSection.cs
- DrawingContextWalker.cs
- PlaceHolder.cs
- CheckBoxStandardAdapter.cs
- ModelItemExtensions.cs
- MailHeaderInfo.cs
- HyperLinkColumn.cs
- FixedSchema.cs
- ProfileSettingsCollection.cs
- URLMembershipCondition.cs
- Rect.cs
- MetadataSource.cs
- SettingsPropertyNotFoundException.cs
- TransportElement.cs