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
- FilterElement.cs
- RegistrationServices.cs
- TabControl.cs
- RuleSetDialog.cs
- IDReferencePropertyAttribute.cs
- WaitHandle.cs
- PeerInputChannelListener.cs
- ReceiveSecurityHeaderEntry.cs
- Pkcs7Recipient.cs
- Connector.cs
- GridViewRowPresenterBase.cs
- VariantWrapper.cs
- GridLength.cs
- TemplateContentLoader.cs
- BooleanConverter.cs
- XmlNodeWriter.cs
- ToolStripOverflowButton.cs
- LightweightEntityWrapper.cs
- FormViewInsertedEventArgs.cs
- DescendantBaseQuery.cs
- AmbientLight.cs
- Ops.cs
- MultiAsyncResult.cs
- XmlCharCheckingReader.cs
- StandardTransformFactory.cs
- DesignerVerb.cs
- StdValidatorsAndConverters.cs
- XmlSchemaRedefine.cs
- StatusBarItem.cs
- MobileTextWriter.cs
- PartitionedStreamMerger.cs
- ContractTypeNameCollection.cs
- SplitterCancelEvent.cs
- RowBinding.cs
- TrackingValidationObjectDictionary.cs
- Ray3DHitTestResult.cs
- FontDriver.cs
- XslNumber.cs
- X509CertificateEndpointIdentity.cs
- XamlVector3DCollectionSerializer.cs
- Stack.cs
- CodeTypeParameterCollection.cs
- ObfuscateAssemblyAttribute.cs
- MsmqUri.cs
- CatalogPart.cs
- _ProxyChain.cs
- ZipIOLocalFileDataDescriptor.cs
- UnsafeNativeMethods.cs
- TabRenderer.cs
- CloudCollection.cs
- WsatAdminException.cs
- WebEventCodes.cs
- Matrix.cs
- BitmapSizeOptions.cs
- ReachSerializer.cs
- followingsibling.cs
- OleDbInfoMessageEvent.cs
- NameSpaceExtractor.cs
- DiagnosticTraceSource.cs
- QueueAccessMode.cs
- CustomAttribute.cs
- SharedPersonalizationStateInfo.cs
- Vector3DCollection.cs
- DecimalKeyFrameCollection.cs
- BaseCAMarshaler.cs
- TemplateParser.cs
- HostedNamedPipeTransportManager.cs
- ResourceReferenceExpressionConverter.cs
- OleDbCommandBuilder.cs
- AssemblyContextControlItem.cs
- ProjectedSlot.cs
- CompilerGeneratedAttribute.cs
- IpcChannelHelper.cs
- TreeNodeBindingCollection.cs
- XamlDesignerSerializationManager.cs
- NullableIntSumAggregationOperator.cs
- NativeMethods.cs
- SqlInternalConnectionSmi.cs
- SmtpSection.cs
- TrackingProfile.cs
- AnimatedTypeHelpers.cs
- EventSource.cs
- SqlTrackingWorkflowInstance.cs
- SearchForVirtualItemEventArgs.cs
- BinaryObjectInfo.cs
- DateRangeEvent.cs
- SymbolType.cs
- DependencySource.cs
- NameObjectCollectionBase.cs
- CompositeKey.cs
- Literal.cs
- FontSizeConverter.cs
- SuppressIldasmAttribute.cs
- IFlowDocumentViewer.cs
- ControlBuilder.cs
- DispatcherHookEventArgs.cs
- WebConfigurationFileMap.cs
- AddingNewEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- EntityContainer.cs