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
- RSAProtectedConfigurationProvider.cs
- XmlTypeAttribute.cs
- ActivityBindForm.cs
- graph.cs
- PointValueSerializer.cs
- DelegatingTypeDescriptionProvider.cs
- PolicyImporterElementCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- UIElementCollection.cs
- EnumValAlphaComparer.cs
- Comparer.cs
- AxHost.cs
- QilXmlWriter.cs
- RootProfilePropertySettingsCollection.cs
- CacheVirtualItemsEvent.cs
- MasterPageParser.cs
- FixedStringLookup.cs
- TreeViewEvent.cs
- System.Data_BID.cs
- ZoomPercentageConverter.cs
- CompilerInfo.cs
- CorruptingExceptionCommon.cs
- ParseHttpDate.cs
- DataViewSettingCollection.cs
- SizeChangedInfo.cs
- TypeConverter.cs
- AspNetCacheProfileAttribute.cs
- EventHandlersStore.cs
- X509RawDataKeyIdentifierClause.cs
- WindowsListView.cs
- ProcessModelInfo.cs
- OleDragDropHandler.cs
- DataDocumentXPathNavigator.cs
- CommandEventArgs.cs
- TypeDelegator.cs
- HtmlTableCell.cs
- TextServicesManager.cs
- PrinterSettings.cs
- ExpressionBindingCollection.cs
- TextLineResult.cs
- DocumentAutomationPeer.cs
- JoinElimination.cs
- Path.cs
- BooleanToVisibilityConverter.cs
- UInt16.cs
- DesignTimeTemplateParser.cs
- IWorkflowDebuggerService.cs
- BinaryConverter.cs
- RestHandler.cs
- DataBindingHandlerAttribute.cs
- CustomLineCap.cs
- NotEqual.cs
- ControlCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- loginstatus.cs
- TraceLevelStore.cs
- Tool.cs
- Context.cs
- FtpCachePolicyElement.cs
- DataServiceHostFactory.cs
- SequentialUshortCollection.cs
- TextEditorThreadLocalStore.cs
- ExpandCollapsePattern.cs
- SQLBytes.cs
- precedingsibling.cs
- MultiTargetingUtil.cs
- FileLogRecordHeader.cs
- EventProviderClassic.cs
- PerformanceCounterCategory.cs
- Soap.cs
- EndpointNameMessageFilter.cs
- ChildDocumentBlock.cs
- ContentPosition.cs
- IProvider.cs
- ToolStripPanel.cs
- ScrollableControl.cs
- GridViewUpdateEventArgs.cs
- LineSegment.cs
- DetailsViewRowCollection.cs
- RemotingServices.cs
- MemoryPressure.cs
- TaskExtensions.cs
- WebPartDisplayModeCancelEventArgs.cs
- TextBlockAutomationPeer.cs
- SqlTypeConverter.cs
- DesignTimeHTMLTextWriter.cs
- DataSetUtil.cs
- HtmlInputCheckBox.cs
- ToolStripDesignerAvailabilityAttribute.cs
- MonitorWrapper.cs
- Panel.cs
- HashMembershipCondition.cs
- ApplicationInterop.cs
- DataRowChangeEvent.cs
- Imaging.cs
- StringResourceManager.cs
- NetworkInformationPermission.cs
- LiteralSubsegment.cs
- BaseAutoFormat.cs
- ResourceAssociationSet.cs