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
- TrackingMemoryStreamFactory.cs
- ControlPropertyNameConverter.cs
- XsltOutput.cs
- XmlWriter.cs
- FlowDocumentFormatter.cs
- EnterpriseServicesHelper.cs
- SourceLineInfo.cs
- Endpoint.cs
- MatchingStyle.cs
- PageScaling.cs
- SmiMetaData.cs
- EntityDataReader.cs
- EncodingTable.cs
- PolyLineSegmentFigureLogic.cs
- CornerRadiusConverter.cs
- ViewSimplifier.cs
- XamlTemplateSerializer.cs
- UpdatableGenericsFeature.cs
- CalendarDay.cs
- XmlAutoDetectWriter.cs
- DoubleLinkList.cs
- VSWCFServiceContractGenerator.cs
- PageTheme.cs
- CustomWebEventKey.cs
- QilParameter.cs
- RowToParametersTransformer.cs
- MatrixTransform3D.cs
- StoreContentChangedEventArgs.cs
- ConvertEvent.cs
- ControlPaint.cs
- QilTargetType.cs
- PartDesigner.cs
- TypeListConverter.cs
- EpmSourceTree.cs
- LogSwitch.cs
- Margins.cs
- ServiceOperationViewControl.cs
- AssemblyFilter.cs
- Utilities.cs
- UInt32Storage.cs
- XmlSchemaInferenceException.cs
- ResXResourceSet.cs
- TypeDescriptor.cs
- ScriptResourceMapping.cs
- Compiler.cs
- BitmapSource.cs
- ContainerFilterService.cs
- EnlistmentTraceIdentifier.cs
- InputQueue.cs
- EditorBrowsableAttribute.cs
- HwndAppCommandInputProvider.cs
- DesignerAttributeInfo.cs
- BigInt.cs
- OleDbParameter.cs
- StdValidatorsAndConverters.cs
- GPRECTF.cs
- SiteMapNodeItemEventArgs.cs
- ConnectionConsumerAttribute.cs
- OutputWindow.cs
- JavascriptCallbackResponseProperty.cs
- NavigationPropertySingletonExpression.cs
- HtmlInputPassword.cs
- DataSourceViewSchemaConverter.cs
- Adorner.cs
- AuthenticatingEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RequestBringIntoViewEventArgs.cs
- TdsParameterSetter.cs
- LowerCaseStringConverter.cs
- AuthenticationModuleElement.cs
- SchemaCompiler.cs
- EntityDataSourceWrapperCollection.cs
- CultureData.cs
- BufferBuilder.cs
- DataAdapter.cs
- WebControlAdapter.cs
- MetadataCollection.cs
- PlanCompilerUtil.cs
- DataGridViewHitTestInfo.cs
- ColorKeyFrameCollection.cs
- DateTimeConstantAttribute.cs
- RenderOptions.cs
- TypeConstant.cs
- CultureSpecificStringDictionary.cs
- DbMetaDataCollectionNames.cs
- FileInfo.cs
- DynamicRenderer.cs
- ToolStripSplitButton.cs
- RuntimeResourceSet.cs
- RoleManagerEventArgs.cs
- MultiPageTextView.cs
- WebControl.cs
- _CommandStream.cs
- OracleBoolean.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MouseCaptureWithinProperty.cs
- InvalidOleVariantTypeException.cs
- sqlpipe.cs
- RequestResizeEvent.cs
- ToolStripMenuItem.cs