Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CollectionConverter.cs
- SmtpReplyReaderFactory.cs
- Solver.cs
- EncodingInfo.cs
- ViewKeyConstraint.cs
- BitmapEffectGeneralTransform.cs
- DescendentsWalkerBase.cs
- HttpProfileGroupBase.cs
- TrackingLocationCollection.cs
- TdsValueSetter.cs
- ModifyActivitiesPropertyDescriptor.cs
- SqlCacheDependencySection.cs
- SessionState.cs
- XmlObjectSerializerWriteContext.cs
- Clipboard.cs
- VisualProxy.cs
- _StreamFramer.cs
- NameValueConfigurationCollection.cs
- SafeHGlobalHandleCritical.cs
- OAVariantLib.cs
- StylusButton.cs
- RectAnimationBase.cs
- CapabilitiesRule.cs
- SyndicationLink.cs
- SmiTypedGetterSetter.cs
- BulletedList.cs
- WebPartManagerInternals.cs
- TTSEngineProxy.cs
- View.cs
- PtsContext.cs
- DataServiceResponse.cs
- ObjectListItem.cs
- DetailsViewInsertEventArgs.cs
- _ShellExpression.cs
- Accessible.cs
- TableRow.cs
- ControlEvent.cs
- DbUpdateCommandTree.cs
- BaseValidatorDesigner.cs
- DesignerActionItem.cs
- assertwrapper.cs
- ResourceManager.cs
- ColorComboBox.cs
- MenuTracker.cs
- SelectedGridItemChangedEvent.cs
- Types.cs
- ObjectTypeMapping.cs
- TransformationRules.cs
- ServicesExceptionNotHandledEventArgs.cs
- BindingValueChangedEventArgs.cs
- DataServiceHostFactory.cs
- StylusPointPropertyId.cs
- XmlDigitalSignatureProcessor.cs
- IsolatedStorageException.cs
- ResourcePermissionBaseEntry.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlMethodTransformer.cs
- BidOverLoads.cs
- BamlLocalizer.cs
- DataServiceRequest.cs
- NamedPipeProcessProtocolHandler.cs
- FontStretches.cs
- SimplePropertyEntry.cs
- BaseDataList.cs
- ActiveXHost.cs
- DataGridView.cs
- SQLBinaryStorage.cs
- XmlObjectSerializerReadContextComplex.cs
- GC.cs
- CachingHintValidation.cs
- MetadataItemSerializer.cs
- PerfCounters.cs
- DataGridTextBox.cs
- httpstaticobjectscollection.cs
- XmlQueryOutput.cs
- mediaeventshelper.cs
- SerializationFieldInfo.cs
- AudioSignalProblemOccurredEventArgs.cs
- ProviderUtil.cs
- FrameworkContentElement.cs
- _ShellExpression.cs
- _NetRes.cs
- InheritanceContextHelper.cs
- CacheForPrimitiveTypes.cs
- AccessText.cs
- SubMenuStyle.cs
- CodeVariableReferenceExpression.cs
- MetadataCache.cs
- UpdateTracker.cs
- MenuBindingsEditorForm.cs
- GenericTypeParameterConverter.cs
- SettingsPropertyValueCollection.cs
- RegexCaptureCollection.cs
- RsaKeyGen.cs
- WpfSharedXamlSchemaContext.cs
- URLEditor.cs
- DataColumnMapping.cs
- RepeatButton.cs
- SizeValueSerializer.cs
- ThrowOnMultipleAssignment.cs