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
- UxThemeWrapper.cs
- MimeWriter.cs
- ValidationSummary.cs
- PageBuildProvider.cs
- X500Name.cs
- AppDomain.cs
- _LazyAsyncResult.cs
- Misc.cs
- DataColumnChangeEvent.cs
- SmiMetaDataProperty.cs
- OleDbFactory.cs
- Expressions.cs
- HostedTransportConfigurationManager.cs
- ScriptReferenceBase.cs
- SystemWebCachingSectionGroup.cs
- COM2EnumConverter.cs
- GenericWebPart.cs
- TagNameToTypeMapper.cs
- DeviceContext2.cs
- XmlSerializerVersionAttribute.cs
- GridViewEditEventArgs.cs
- EpmSourcePathSegment.cs
- MarkupWriter.cs
- FlowDocumentFormatter.cs
- ReadOnlyDataSourceView.cs
- PrivilegeNotHeldException.cs
- SqlProviderServices.cs
- Constraint.cs
- ObjectContext.cs
- TypeSource.cs
- CategoryAttribute.cs
- TextFindEngine.cs
- TextBox.cs
- HtmlInputReset.cs
- PersonalizationState.cs
- LayoutTable.cs
- x509utils.cs
- TextStore.cs
- LayoutTable.cs
- SpotLight.cs
- ChainedAsyncResult.cs
- BitmapEffectInput.cs
- XmlSchemas.cs
- AsyncPostBackTrigger.cs
- TextBlockAutomationPeer.cs
- MemberDescriptor.cs
- FontResourceCache.cs
- XmlAttributes.cs
- LoadWorkflowCommand.cs
- DbDataRecord.cs
- FieldAccessException.cs
- AppDomainProtocolHandler.cs
- CfgParser.cs
- Assembly.cs
- EnumBuilder.cs
- RelationshipEndMember.cs
- Perspective.cs
- CancellationState.cs
- HttpClientCertificate.cs
- ArrayList.cs
- ErrorWebPart.cs
- XMLSyntaxException.cs
- PkcsMisc.cs
- GACMembershipCondition.cs
- RelationshipEndMember.cs
- CompilerResults.cs
- CodeTypeReferenceSerializer.cs
- SettingsPropertyWrongTypeException.cs
- NetMsmqSecurityElement.cs
- PathSegmentCollection.cs
- SessionPageStatePersister.cs
- SmtpMail.cs
- Image.cs
- Graphics.cs
- Control.cs
- DataRecord.cs
- Char.cs
- TypeValidationEventArgs.cs
- QueryContinueDragEventArgs.cs
- MimeWriter.cs
- PropertyMetadata.cs
- DataSvcMapFile.cs
- PermissionRequestEvidence.cs
- HtmlCommandAdapter.cs
- GroupStyle.cs
- NameValueConfigurationElement.cs
- HttpModuleCollection.cs
- MouseEvent.cs
- QuaternionIndependentAnimationStorage.cs
- Math.cs
- GlyphsSerializer.cs
- CodeDelegateInvokeExpression.cs
- ExpressionNode.cs
- AddDataControlFieldDialog.cs
- ToolStripPanelDesigner.cs
- PaperSource.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- GenericWebPart.cs
- XmlSerializableWriter.cs
- CatalogZoneDesigner.cs