Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AppSettingsExpressionBuilder.cs
- ScrollContentPresenter.cs
- RightsManagementEncryptedStream.cs
- DefaultBinder.cs
- FixedPageProcessor.cs
- ToolboxComponentsCreatedEventArgs.cs
- AsyncOperation.cs
- Drawing.cs
- MenuItem.cs
- TrackingLocationCollection.cs
- MDIControlStrip.cs
- MinMaxParagraphWidth.cs
- DictionarySurrogate.cs
- JsonDataContract.cs
- TcpActivation.cs
- EntityWrapperFactory.cs
- CodeArgumentReferenceExpression.cs
- MetadataPropertyAttribute.cs
- CompositionCommandSet.cs
- LinqDataSourceDeleteEventArgs.cs
- HostExecutionContextManager.cs
- SqlParameter.cs
- CommandEventArgs.cs
- TemplateInstanceAttribute.cs
- HttpWebResponse.cs
- ComboBox.cs
- ImmutableObjectAttribute.cs
- DiagnosticsConfiguration.cs
- RowToParametersTransformer.cs
- xmlsaver.cs
- FixedTextSelectionProcessor.cs
- HtmlShimManager.cs
- ValidationRule.cs
- SortFieldComparer.cs
- TimeEnumHelper.cs
- IndexingContentUnit.cs
- WebBrowserContainer.cs
- ScriptRegistrationManager.cs
- HTTPNotFoundHandler.cs
- DES.cs
- OrderedDictionary.cs
- SizeAnimationUsingKeyFrames.cs
- HandlerBase.cs
- DataSpaceManager.cs
- DesignerActionGlyph.cs
- GPStream.cs
- SynchronizationLockException.cs
- XmlIterators.cs
- SqlExpander.cs
- GridViewRowCollection.cs
- addressfiltermode.cs
- TypeDescriptorFilterService.cs
- TextEncodedRawTextWriter.cs
- ComboBox.cs
- Event.cs
- sqlinternaltransaction.cs
- ByteStreamMessageUtility.cs
- ArrayList.cs
- XmlSerializer.cs
- mactripleDES.cs
- WebPartUtil.cs
- ConnectionsZone.cs
- PropertyConverter.cs
- PseudoWebRequest.cs
- ActivationArguments.cs
- CellRelation.cs
- QuaternionKeyFrameCollection.cs
- CompositeDesignerAccessibleObject.cs
- SByte.cs
- ExtensibleClassFactory.cs
- cookiecollection.cs
- GradientSpreadMethodValidation.cs
- TableLayoutRowStyleCollection.cs
- TextLineResult.cs
- ObjectDataSourceDisposingEventArgs.cs
- TableNameAttribute.cs
- MimePart.cs
- SizeAnimation.cs
- WindowsTokenRoleProvider.cs
- DependentList.cs
- SignedPkcs7.cs
- Opcode.cs
- ConfigurationValidatorBase.cs
- DiagnosticsConfigurationHandler.cs
- SystemFonts.cs
- DelegateBodyWriter.cs
- CodeCompileUnit.cs
- Expressions.cs
- securitycriticaldataClass.cs
- TriState.cs
- KeysConverter.cs
- BufferBuilder.cs
- SqlParameterCollection.cs
- VisualStyleInformation.cs
- PageAsyncTask.cs
- FolderLevelBuildProviderCollection.cs
- SoapObjectInfo.cs
- PropertyEmitterBase.cs
- OdbcError.cs
- CookieParameter.cs