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
- invalidudtexception.cs
- SqlSelectStatement.cs
- CodeTypeOfExpression.cs
- SelectionItemPattern.cs
- AuthenticationSection.cs
- CustomPopupPlacement.cs
- ProviderConnectionPointCollection.cs
- PolicyStatement.cs
- GuidelineSet.cs
- CalendarTable.cs
- DataGridRow.cs
- Msmq3PoisonHandler.cs
- ToolStripButton.cs
- X509Certificate.cs
- DescendantOverDescendantQuery.cs
- StyleXamlParser.cs
- OwnerDrawPropertyBag.cs
- GetIsBrowserClientRequest.cs
- ResolveResponse.cs
- PropertyConverter.cs
- CollectionsUtil.cs
- XmlDocumentSerializer.cs
- XhtmlConformanceSection.cs
- Qualifier.cs
- ProtocolsConfigurationEntry.cs
- WebResponse.cs
- FaultException.cs
- DbConnectionInternal.cs
- MetadataCache.cs
- OptimalTextSource.cs
- VisualProxy.cs
- JsonXmlDataContract.cs
- ReadingWritingEntityEventArgs.cs
- ScriptingProfileServiceSection.cs
- ServiceBehaviorElementCollection.cs
- MaterializeFromAtom.cs
- SizeAnimationBase.cs
- ObjectDataSourceSelectingEventArgs.cs
- DisplayInformation.cs
- GZipDecoder.cs
- HttpResponseHeader.cs
- DataGridCell.cs
- DataViewSetting.cs
- AssemblyBuilder.cs
- SpotLight.cs
- Touch.cs
- HwndTarget.cs
- HtmlTable.cs
- SafeCoTaskMem.cs
- Geometry3D.cs
- WizardForm.cs
- ClientType.cs
- ProfileGroupSettings.cs
- ApplicationId.cs
- DesignerRegion.cs
- WebPartConnectionsCancelVerb.cs
- SchemaCollectionCompiler.cs
- ETagAttribute.cs
- OrderablePartitioner.cs
- BypassElement.cs
- ComponentDispatcherThread.cs
- NativeMethods.cs
- ellipse.cs
- ExpandoClass.cs
- MSAAWinEventWrap.cs
- Activity.cs
- SourceItem.cs
- WinHttpWebProxyFinder.cs
- HtmlInputCheckBox.cs
- EdmProperty.cs
- SqlBuffer.cs
- CodeBlockBuilder.cs
- CodeAttributeDeclaration.cs
- SubMenuStyleCollectionEditor.cs
- ComponentDispatcherThread.cs
- CapabilitiesAssignment.cs
- ComponentManagerBroker.cs
- TheQuery.cs
- SerializationStore.cs
- XmlTextReader.cs
- StringFreezingAttribute.cs
- CollectionView.cs
- ErrorProvider.cs
- IPipelineRuntime.cs
- ThrowHelper.cs
- GeometryDrawing.cs
- SetMemberBinder.cs
- updateconfighost.cs
- TabControlEvent.cs
- GridLengthConverter.cs
- SystemTcpConnection.cs
- HttpDigestClientElement.cs
- SafeFileMapViewHandle.cs
- _IPv6Address.cs
- InputScopeNameConverter.cs
- ContextStack.cs
- recordstate.cs
- LinqDataSourceDisposeEventArgs.cs
- ScriptReferenceEventArgs.cs
- ToolStripSystemRenderer.cs