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
- ImageFormatConverter.cs
- CodeSnippetTypeMember.cs
- OperationFormatStyle.cs
- CheckBoxDesigner.cs
- MDIWindowDialog.cs
- Freezable.cs
- AesCryptoServiceProvider.cs
- PageAdapter.cs
- HtmlForm.cs
- SplineQuaternionKeyFrame.cs
- _SpnDictionary.cs
- MSG.cs
- HtmlInputText.cs
- Exceptions.cs
- UriTemplateClientFormatter.cs
- AtomContentProperty.cs
- DeclaredTypeElement.cs
- Filter.cs
- InvariantComparer.cs
- RequestCacheManager.cs
- ProviderConnectionPoint.cs
- ConnectionPointCookie.cs
- FixUpCollection.cs
- KeyedCollection.cs
- Baml2006ReaderSettings.cs
- WebServiceMethodData.cs
- TargetParameterCountException.cs
- TargetPerspective.cs
- Utils.cs
- ListBox.cs
- CompilerCollection.cs
- MetaTable.cs
- UrlAuthFailedErrorFormatter.cs
- ApplicationException.cs
- DataGridViewSortCompareEventArgs.cs
- FilePrompt.cs
- TraceContextRecord.cs
- BuildManager.cs
- BoundsDrawingContextWalker.cs
- WebPartConnectionCollection.cs
- RequestCacheValidator.cs
- OleStrCAMarshaler.cs
- RuntimeHelpers.cs
- JoinElimination.cs
- XsltConvert.cs
- Brush.cs
- DataBoundControlHelper.cs
- LocalizationParserHooks.cs
- Vector.cs
- MSG.cs
- DesignerTransactionCloseEvent.cs
- CleanUpVirtualizedItemEventArgs.cs
- ToolTipAutomationPeer.cs
- XmlWrappingReader.cs
- _DigestClient.cs
- newitemfactory.cs
- TextBlock.cs
- HandleCollector.cs
- FilterException.cs
- TreeNodeStyleCollectionEditor.cs
- mongolianshape.cs
- Region.cs
- codemethodreferenceexpression.cs
- TextRangeAdaptor.cs
- PropertyMetadata.cs
- MouseButton.cs
- formatter.cs
- DataConnectionHelper.cs
- EditingMode.cs
- itemelement.cs
- WmpBitmapEncoder.cs
- Route.cs
- ServicePointManagerElement.cs
- StoreAnnotationsMap.cs
- SemanticBasicElement.cs
- Atom10FormatterFactory.cs
- Hash.cs
- sortedlist.cs
- BitHelper.cs
- Int64Animation.cs
- DataRecord.cs
- QueryHandler.cs
- CrossSiteScriptingValidation.cs
- BaseContextMenu.cs
- EntityTypeEmitter.cs
- EntityDataSourceSelectedEventArgs.cs
- ComponentRenameEvent.cs
- ReflectionPermission.cs
- DiagnosticTrace.cs
- LeftCellWrapper.cs
- HttpTransportBindingElement.cs
- SchemaTableColumn.cs
- DataControlPagerLinkButton.cs
- CompilationRelaxations.cs
- PropertyRef.cs
- ReplyAdapterChannelListener.cs
- FontDifferentiator.cs
- FormViewUpdatedEventArgs.cs
- DeferredElementTreeState.cs
- PartialTrustVisibleAssembliesSection.cs