Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Debug.cs
- TextViewBase.cs
- AttachmentCollection.cs
- KeyValuePairs.cs
- ByteArrayHelperWithString.cs
- WebHttpSecurityElement.cs
- TargetControlTypeCache.cs
- ImportDesigner.xaml.cs
- ProjectionCamera.cs
- DataTrigger.cs
- AttributeInfo.cs
- SqlTypesSchemaImporter.cs
- SqlSupersetValidator.cs
- HttpResponse.cs
- _LocalDataStore.cs
- CategoryState.cs
- LinqToSqlWrapper.cs
- PopOutPanel.cs
- CodeDOMProvider.cs
- HexParser.cs
- FragmentQueryProcessor.cs
- GetPageNumberCompletedEventArgs.cs
- IteratorFilter.cs
- ReadOnlyCollection.cs
- Keywords.cs
- HandledMouseEvent.cs
- BamlRecordReader.cs
- TextEditorSelection.cs
- ListView.cs
- Visual.cs
- PromptEventArgs.cs
- FormCollection.cs
- Range.cs
- Size3D.cs
- HtmlButton.cs
- ControlCollection.cs
- XmlTextAttribute.cs
- EntityModelSchemaGenerator.cs
- WebPartConnection.cs
- StatusBarItemAutomationPeer.cs
- VersionPair.cs
- SamlSubjectStatement.cs
- RetrieveVirtualItemEventArgs.cs
- XmlSchemaCollection.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Quaternion.cs
- ComPlusDiagnosticTraceSchemas.cs
- VirtualDirectoryMappingCollection.cs
- MethodToken.cs
- CheckBox.cs
- DataShape.cs
- EncodingInfo.cs
- OutOfMemoryException.cs
- TransformValueSerializer.cs
- _SpnDictionary.cs
- FigureParagraph.cs
- EndpointConfigContainer.cs
- AddingNewEventArgs.cs
- ExpressionHelper.cs
- DesigntimeLicenseContext.cs
- ApplicationFileParser.cs
- CachedTypeface.cs
- RegexEditorDialog.cs
- Workspace.cs
- ConstructorBuilder.cs
- TextRangeBase.cs
- ColumnMapTranslator.cs
- FontNamesConverter.cs
- SqlMetaData.cs
- AsyncPostBackTrigger.cs
- XmlConverter.cs
- StandardToolWindows.cs
- TracedNativeMethods.cs
- EditableRegion.cs
- TriggerBase.cs
- SqlUtil.cs
- ZoneLinkButton.cs
- SqlNotificationRequest.cs
- TextDocumentView.cs
- ColumnWidthChangedEvent.cs
- StrongTypingException.cs
- CustomErrorCollection.cs
- ProvidersHelper.cs
- ElementProxy.cs
- AspCompat.cs
- ConnectionManager.cs
- CollectionAdapters.cs
- Processor.cs
- HMACRIPEMD160.cs
- MemberAssignment.cs
- SystemNetHelpers.cs
- ExpressionParser.cs
- ChameleonKey.cs
- SamlAttributeStatement.cs
- StagingAreaInputItem.cs
- ActiveXHelper.cs
- XPathDocumentNavigator.cs
- LayoutUtils.cs
- ThousandthOfEmRealPoints.cs
- Int32CAMarshaler.cs