Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataItemEmitter.cs
- PublisherIdentityPermission.cs
- KeyValueInternalCollection.cs
- SchemaElementLookUpTableEnumerator.cs
- ReflectPropertyDescriptor.cs
- NativeMethods.cs
- MemoryMappedViewAccessor.cs
- HttpListenerPrefixCollection.cs
- DesignerVerb.cs
- DNS.cs
- LinqToSqlWrapper.cs
- WebUtil.cs
- SmiContext.cs
- BufferedGraphics.cs
- CancellationHandler.cs
- TreePrinter.cs
- DataObjectMethodAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- EntityDataSourceStatementEditor.cs
- OleDbMetaDataFactory.cs
- ScriptIgnoreAttribute.cs
- ProcessHostMapPath.cs
- AutoResizedEvent.cs
- SemanticTag.cs
- Vector3DCollection.cs
- ClientSponsor.cs
- CodeTypeConstructor.cs
- ProviderConnectionPoint.cs
- TrustLevel.cs
- HttpStreamMessage.cs
- SqlSelectStatement.cs
- AddDataControlFieldDialog.cs
- EventDescriptor.cs
- Membership.cs
- DataGridItem.cs
- PackUriHelper.cs
- Triangle.cs
- RemotingAttributes.cs
- PageThemeBuildProvider.cs
- LiteralDesigner.cs
- SettingsPropertyWrongTypeException.cs
- SerializationStore.cs
- FormsAuthenticationUserCollection.cs
- RestClientProxyHandler.cs
- WinEventQueueItem.cs
- ScriptResourceInfo.cs
- HiddenFieldDesigner.cs
- _BufferOffsetSize.cs
- odbcmetadatacollectionnames.cs
- HitTestFilterBehavior.cs
- ChangeBlockUndoRecord.cs
- AppSettingsReader.cs
- PersonalizableAttribute.cs
- SystemIPv4InterfaceProperties.cs
- RelationshipType.cs
- OdbcError.cs
- _IPv6Address.cs
- ResourceProviderFactory.cs
- ExpressionBuilderCollection.cs
- TextTreeUndo.cs
- ButtonChrome.cs
- DbgUtil.cs
- Timer.cs
- Component.cs
- WinInet.cs
- TrackBar.cs
- remotingproxy.cs
- ThreadSafeList.cs
- GregorianCalendar.cs
- DataControlPagerLinkButton.cs
- TextStore.cs
- XmlSigningNodeWriter.cs
- TiffBitmapDecoder.cs
- DetailsViewInsertEventArgs.cs
- CompositionTarget.cs
- ManagementEventArgs.cs
- MultiAsyncResult.cs
- TypeConverterAttribute.cs
- InputGestureCollection.cs
- StorageSetMapping.cs
- FlatButtonAppearance.cs
- TextEndOfParagraph.cs
- SecurityState.cs
- ListViewTableCell.cs
- CompilationLock.cs
- WorkflowServiceAttributes.cs
- LinkedResource.cs
- ReadOnlyObservableCollection.cs
- Stylesheet.cs
- SafeViewOfFileHandle.cs
- NativeMethods.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EventLogSession.cs
- EntityDesignerDataSourceView.cs
- Condition.cs
- PinProtectionHelper.cs
- ClaimTypes.cs
- HtmlInputControl.cs
- CompletionCallbackWrapper.cs
- XmlSchemaGroupRef.cs