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
- TextFragmentEngine.cs
- SqlDataSourceCache.cs
- XmlParser.cs
- NativeMethods.cs
- safemediahandle.cs
- ObjectDataSourceView.cs
- DependencyPropertyAttribute.cs
- LogLogRecord.cs
- ElapsedEventArgs.cs
- KeySpline.cs
- Cursors.cs
- PresentationTraceSources.cs
- EntityContainerRelationshipSetEnd.cs
- AssemblyBuilderData.cs
- PrePostDescendentsWalker.cs
- SecureConversationDriver.cs
- PassportAuthenticationModule.cs
- UnicodeEncoding.cs
- HandlerBase.cs
- MethodBuilderInstantiation.cs
- X509ChainElement.cs
- TlsnegoTokenProvider.cs
- StreamSecurityUpgradeAcceptorBase.cs
- ReceiveActivityDesignerTheme.cs
- XamlFilter.cs
- BrowsableAttribute.cs
- StatusBar.cs
- TextServicesCompartmentContext.cs
- GcHandle.cs
- Base64Encoder.cs
- IPipelineRuntime.cs
- BaseEntityWrapper.cs
- DocumentSequence.cs
- TemplateLookupAction.cs
- ControlBindingsCollection.cs
- RowParagraph.cs
- FixedSOMSemanticBox.cs
- HwndSourceKeyboardInputSite.cs
- ScriptMethodAttribute.cs
- SmiMetaData.cs
- TextRunCacheImp.cs
- SelectionUIService.cs
- TypeDependencyAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- Dynamic.cs
- MatrixCamera.cs
- BinaryFormatterWriter.cs
- OleDbPermission.cs
- TCPListener.cs
- DesignTimeVisibleAttribute.cs
- MobileControlsSectionHandler.cs
- HandlerFactoryWrapper.cs
- UshortList2.cs
- GeneralTransform2DTo3DTo2D.cs
- HelpProvider.cs
- PreviewKeyDownEventArgs.cs
- XmlNodeReader.cs
- _CacheStreams.cs
- DesignerTransaction.cs
- EventProviderTraceListener.cs
- UIElement3D.cs
- CompareInfo.cs
- SessionStateUtil.cs
- StrongNameUtility.cs
- BitmapCodecInfo.cs
- DataTemplateKey.cs
- CompilationRelaxations.cs
- ColorConverter.cs
- RegionIterator.cs
- DoubleLinkList.cs
- ApplicationCommands.cs
- HandleScope.cs
- XmlValidatingReaderImpl.cs
- TemplateXamlParser.cs
- WaitingCursor.cs
- BmpBitmapEncoder.cs
- KnowledgeBase.cs
- PointHitTestParameters.cs
- CaseInsensitiveHashCodeProvider.cs
- SimpleHandlerBuildProvider.cs
- CryptoProvider.cs
- CollectionConverter.cs
- CompositeDesignerAccessibleObject.cs
- WebAdminConfigurationHelper.cs
- HTMLTagNameToTypeMapper.cs
- EnumType.cs
- SystemParameters.cs
- MailWebEventProvider.cs
- ObsoleteAttribute.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ACL.cs
- AspNetHostingPermission.cs
- FixedStringLookup.cs
- CompiledQueryCacheKey.cs
- JapaneseLunisolarCalendar.cs
- DetailsViewDesigner.cs
- SizeAnimationClockResource.cs
- TemplateContent.cs
- InvokeHandlers.cs
- LoginCancelEventArgs.cs