Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlImplementation.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BypassElementCollection.cs
- IncrementalReadDecoders.cs
- CharStorage.cs
- Rectangle.cs
- StylusPointCollection.cs
- ArraySortHelper.cs
- COM2ComponentEditor.cs
- PathSegmentCollection.cs
- AssemblyHash.cs
- NativeMethods.cs
- CodeObject.cs
- Win32Native.cs
- TextSelectionProcessor.cs
- PageAdapter.cs
- HttpListenerRequest.cs
- PageThemeCodeDomTreeGenerator.cs
- XmlSchemaType.cs
- TextOnlyOutput.cs
- PasswordBoxAutomationPeer.cs
- CompositeDesignerAccessibleObject.cs
- DataFieldEditor.cs
- SplineKeyFrames.cs
- SoapAttributeOverrides.cs
- Permission.cs
- CompilerResults.cs
- BitmapEffect.cs
- CommandEventArgs.cs
- SHA1.cs
- DiagnosticsConfiguration.cs
- InstanceData.cs
- FreezableDefaultValueFactory.cs
- TCPListener.cs
- SQLDateTime.cs
- PropertyContainer.cs
- IntSecurity.cs
- ToolZone.cs
- TraceContextRecord.cs
- Win32.cs
- BitVector32.cs
- JsonServiceDocumentSerializer.cs
- DataBoundLiteralControl.cs
- validationstate.cs
- Utils.cs
- InvokePatternIdentifiers.cs
- ColorInterpolationModeValidation.cs
- ConcurrentDictionary.cs
- InertiaRotationBehavior.cs
- Freezable.cs
- HostAdapter.cs
- DataGridViewRowEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- EventLogPermissionEntry.cs
- propertyentry.cs
- InputBindingCollection.cs
- HyperLinkField.cs
- Encoder.cs
- dataprotectionpermissionattribute.cs
- FigureParagraph.cs
- SmtpReplyReaderFactory.cs
- PasswordRecovery.cs
- DataFieldCollectionEditor.cs
- InProcStateClientManager.cs
- DragEventArgs.cs
- Button.cs
- ToolStripItem.cs
- RequestContext.cs
- EntryIndex.cs
- PartialTrustVisibleAssembly.cs
- handlecollector.cs
- ItemsPanelTemplate.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- _FixedSizeReader.cs
- ParsedAttributeCollection.cs
- MetadataPropertyvalue.cs
- DropAnimation.xaml.cs
- XmlDocumentType.cs
- XmlSchemaAll.cs
- CollectionView.cs
- LinqDataSourceHelper.cs
- FontInfo.cs
- ExceptionList.cs
- XhtmlBasicImageAdapter.cs
- AtomServiceDocumentSerializer.cs
- SqlAliasesReferenced.cs
- FileDialogPermission.cs
- RemoteDebugger.cs
- OutOfMemoryException.cs
- BinaryConverter.cs
- ChtmlMobileTextWriter.cs
- ButtonAutomationPeer.cs
- DocumentPropertiesDialog.cs
- StylusTip.cs
- _NegotiateClient.cs
- ExceptionUtil.cs
- grammarelement.cs
- WebEncodingValidatorAttribute.cs
- TreeViewDesigner.cs
- TypeDescriptor.cs
- HotSpot.cs
- CompileXomlTask.cs