Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- WebPartManagerInternals.cs
- SystemSounds.cs
- ComUdtElementCollection.cs
- MappingException.cs
- WorkflowControlClient.cs
- ResourceReferenceExpression.cs
- ClientProxyGenerator.cs
- DataBindingExpressionBuilder.cs
- ProfileElement.cs
- SynchronizingStream.cs
- CategoryAttribute.cs
- RichTextBoxConstants.cs
- InvokeSchedule.cs
- LockCookie.cs
- SystemIcmpV6Statistics.cs
- _Connection.cs
- ColumnMapProcessor.cs
- SmiGettersStream.cs
- ExceptionHandler.cs
- TextReader.cs
- AncestorChangedEventArgs.cs
- ResolvedKeyFrameEntry.cs
- CodeAttributeArgumentCollection.cs
- ImageConverter.cs
- WindowsTokenRoleProvider.cs
- Helper.cs
- WebPartZoneBase.cs
- HwndProxyElementProvider.cs
- ImportCatalogPart.cs
- DbExpressionVisitor_TResultType.cs
- ConsumerConnectionPointCollection.cs
- HttpCacheParams.cs
- Padding.cs
- MatrixTransform3D.cs
- BinaryObjectWriter.cs
- Mapping.cs
- SoapTypeAttribute.cs
- Underline.cs
- MainMenu.cs
- HorizontalAlignConverter.cs
- SqlHelper.cs
- BaseValidator.cs
- SqlDataReader.cs
- precedingquery.cs
- ConfigurationSectionHelper.cs
- SecurityResources.cs
- ReferencedCollectionType.cs
- TempEnvironment.cs
- CompilerScopeManager.cs
- CookieProtection.cs
- ManagementDateTime.cs
- PropertyCondition.cs
- MsmqInputChannelBase.cs
- ParameterElementCollection.cs
- ProxyWebPartConnectionCollection.cs
- HwndPanningFeedback.cs
- HyperlinkAutomationPeer.cs
- Pen.cs
- BigInt.cs
- File.cs
- HtmlControl.cs
- InOutArgument.cs
- Geometry3D.cs
- DataGridBoolColumn.cs
- TileBrush.cs
- OracleInfoMessageEventArgs.cs
- COM2ExtendedBrowsingHandler.cs
- TargetException.cs
- X509ThumbprintKeyIdentifierClause.cs
- AutoSizeToolBoxItem.cs
- XmlRootAttribute.cs
- SafeMemoryMappedFileHandle.cs
- UrlMapping.cs
- ZipIOFileItemStream.cs
- CompressEmulationStream.cs
- ProcessRequestArgs.cs
- TypeSystem.cs
- Command.cs
- JpegBitmapDecoder.cs
- DelegateArgument.cs
- CannotUnloadAppDomainException.cs
- StringTraceRecord.cs
- ListSortDescriptionCollection.cs
- PathFigureCollectionValueSerializer.cs
- TdsEnums.cs
- CheckBox.cs
- ToolStripSeparatorRenderEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WebDescriptionAttribute.cs
- XpsResourceDictionary.cs
- Attachment.cs
- XmlAutoDetectWriter.cs
- FileDialogCustomPlacesCollection.cs
- ReachVisualSerializerAsync.cs
- RootCodeDomSerializer.cs
- ImageSourceConverter.cs
- KeyValueConfigurationCollection.cs
- FormatVersion.cs
- ProfessionalColors.cs
- Header.cs