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
- SlipBehavior.cs
- AppDomainUnloadedException.cs
- Collection.cs
- SqlCommandBuilder.cs
- GenericUriParser.cs
- TemplateComponentConnector.cs
- ByteAnimationUsingKeyFrames.cs
- SQLString.cs
- Typography.cs
- ConfigurationSettings.cs
- LicenseContext.cs
- GeneralTransform2DTo3D.cs
- TypedAsyncResult.cs
- AuthorizationContext.cs
- RegionInfo.cs
- CodeDelegateCreateExpression.cs
- XmlCompatibilityReader.cs
- AuthenticationModuleElementCollection.cs
- ListSourceHelper.cs
- securitycriticaldataformultiplegetandset.cs
- ToolStripGrip.cs
- ISessionStateStore.cs
- SelectionChangedEventArgs.cs
- documentsequencetextpointer.cs
- XmlNodeReader.cs
- wgx_commands.cs
- BoolLiteral.cs
- WsdlHelpGeneratorElement.cs
- StandardMenuStripVerb.cs
- DefaultBinder.cs
- CatalogPartChrome.cs
- TextCharacters.cs
- BinaryObjectInfo.cs
- LeaseManager.cs
- XhtmlBasicTextBoxAdapter.cs
- UnitySerializationHolder.cs
- PlaceHolder.cs
- oledbmetadatacolumnnames.cs
- WebHttpBindingElement.cs
- CompilerTypeWithParams.cs
- ReverseInheritProperty.cs
- InvalidOperationException.cs
- PackageRelationshipSelector.cs
- DLinqColumnProvider.cs
- DbLambda.cs
- TextTreeUndo.cs
- SimpleMailWebEventProvider.cs
- CodeGenerationManager.cs
- SqlEnums.cs
- ViewGenerator.cs
- DesigntimeLicenseContextSerializer.cs
- CallbackDebugElement.cs
- DropSource.cs
- BufferCache.cs
- XmlTextReaderImplHelpers.cs
- ContainerFilterService.cs
- CompositeDuplexBindingElementImporter.cs
- WindowAutomationPeer.cs
- EventProxy.cs
- TypeExtensionConverter.cs
- QilUnary.cs
- DateTimeOffset.cs
- FlowDocumentPaginator.cs
- VirtualDirectoryMapping.cs
- WmpBitmapEncoder.cs
- GuidTagList.cs
- SafeCryptoHandles.cs
- StrokeNode.cs
- _RegBlobWebProxyDataBuilder.cs
- MimeParameter.cs
- FormClosedEvent.cs
- Win32Exception.cs
- WebBrowserDesigner.cs
- FieldBuilder.cs
- HttpWebResponse.cs
- SqlInternalConnectionTds.cs
- ArrayWithOffset.cs
- OleDbReferenceCollection.cs
- Serializer.cs
- CodeDesigner.cs
- XmlElementList.cs
- TraceSection.cs
- WSSecureConversationFeb2005.cs
- COSERVERINFO.cs
- activationcontext.cs
- XmlDocumentType.cs
- ConnectionString.cs
- FileController.cs
- ThicknessConverter.cs
- PropertyState.cs
- WindowsHyperlink.cs
- EdmComplexTypeAttribute.cs
- Tile.cs
- LeftCellWrapper.cs
- ClientBuildManagerCallback.cs
- NonBatchDirectoryCompiler.cs
- ComNativeDescriptor.cs
- DrawingContextDrawingContextWalker.cs
- RectangleGeometry.cs
- LongTypeConverter.cs