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
- CompModSwitches.cs
- DataGridViewCellCollection.cs
- CacheChildrenQuery.cs
- XmlAtomErrorReader.cs
- DESCryptoServiceProvider.cs
- SimpleApplicationHost.cs
- LayoutEvent.cs
- CellParagraph.cs
- StrongNamePublicKeyBlob.cs
- TaskHelper.cs
- WebEvents.cs
- Compress.cs
- CodeParameterDeclarationExpression.cs
- Opcode.cs
- GacUtil.cs
- ReadWriteObjectLock.cs
- SeparatorAutomationPeer.cs
- XmlDeclaration.cs
- WebHttpSecurity.cs
- HtmlValidatorAdapter.cs
- DomainLiteralReader.cs
- InputGestureCollection.cs
- DocumentEventArgs.cs
- XmlIlGenerator.cs
- ViewStateModeByIdAttribute.cs
- CheckBoxStandardAdapter.cs
- ConfigurationStrings.cs
- DomainLiteralReader.cs
- QueueTransferProtocol.cs
- ObjectDataSourceFilteringEventArgs.cs
- SerialPinChanges.cs
- HtmlTitle.cs
- ObjectFullSpanRewriter.cs
- HashAlgorithm.cs
- DataServiceConfiguration.cs
- ObjectView.cs
- SqlProviderServices.cs
- QilXmlReader.cs
- EventDriven.cs
- TextServicesDisplayAttributePropertyRanges.cs
- webbrowsersite.cs
- ListViewDeletedEventArgs.cs
- Style.cs
- XmlParser.cs
- WindowsFormsLinkLabel.cs
- NativeMethods.cs
- GroupBoxAutomationPeer.cs
- NotConverter.cs
- DropDownButton.cs
- PolyBezierSegmentFigureLogic.cs
- KeyEvent.cs
- ArrayConverter.cs
- ImagingCache.cs
- PartialCachingAttribute.cs
- ConfigurationValue.cs
- ObjectSet.cs
- SequentialWorkflowRootDesigner.cs
- EditorZoneBase.cs
- TileBrush.cs
- Attributes.cs
- FormViewUpdatedEventArgs.cs
- ParserContext.cs
- ClientOptions.cs
- UTF8Encoding.cs
- VolatileEnlistmentMultiplexing.cs
- SizeKeyFrameCollection.cs
- InvalidateEvent.cs
- WindowsFormsHostAutomationPeer.cs
- SequentialActivityDesigner.cs
- CodeDomLoader.cs
- MarkupCompilePass2.cs
- UnmanagedMarshal.cs
- ObfuscateAssemblyAttribute.cs
- backend.cs
- FormViewDeleteEventArgs.cs
- CodeSnippetTypeMember.cs
- IntegerValidator.cs
- NavigatorInput.cs
- SystemIPInterfaceProperties.cs
- DefaultPrintController.cs
- ResourceDisplayNameAttribute.cs
- ReadOnlyAttribute.cs
- TypedTableBaseExtensions.cs
- LineBreakRecord.cs
- EnumUnknown.cs
- PackagePartCollection.cs
- HashLookup.cs
- ZipIOLocalFileBlock.cs
- _SSPISessionCache.cs
- ServiceOperationParameter.cs
- Interfaces.cs
- StringUtil.cs
- CodeTryCatchFinallyStatement.cs
- XhtmlBasicValidatorAdapter.cs
- TypeHelper.cs
- BooleanAnimationUsingKeyFrames.cs
- StaticTextPointer.cs
- _SSPISessionCache.cs
- HierarchicalDataBoundControlAdapter.cs
- NegotiationTokenAuthenticator.cs