Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlDomTextWriter.cs / 1305376 / XmlDomTextWriter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System; using System.IO; using System.Text; using System.Runtime.Versioning; // Represents a writer that will make it possible to work with prefixes even // if the namespace is not specified. // This is not possible with XmlTextWriter. But this class inherits XmlTextWriter. internal class XmlDOMTextWriter : XmlTextWriter { public XmlDOMTextWriter( Stream w, Encoding encoding ) : base( w,encoding ) { } [ResourceConsumption(ResourceScope.Machine)] [ResourceExposure(ResourceScope.Machine)] public XmlDOMTextWriter( String filename, Encoding encoding ) : base( filename,encoding ){ } public XmlDOMTextWriter( TextWriter w ) : base( w ){ } // Overrides the baseclass implementation so that emptystring prefixes do // do not fail if namespace is not specified. public override void WriteStartElement( string prefix, string localName, string ns ){ if( ( ns.Length == 0 ) && ( prefix.Length != 0 ) ) prefix = "" ; base.WriteStartElement( prefix, localName, ns ); } // Overrides the baseclass implementation so that emptystring prefixes do // do not fail if namespace is not specified. public override void WriteStartAttribute( string prefix, string localName, string ns ){ if( ( ns.Length == 0 ) && ( prefix.Length != 0 ) ) prefix = "" ; base.WriteStartAttribute( prefix, localName, ns ); } } } // 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
- wgx_sdk_version.cs
- WinFormsSecurity.cs
- Permission.cs
- CachedPathData.cs
- ImportCatalogPart.cs
- WebDisplayNameAttribute.cs
- Subtree.cs
- XmlSerializerNamespaces.cs
- Asn1IntegerConverter.cs
- RayHitTestParameters.cs
- InstanceData.cs
- XmlCharCheckingReader.cs
- UnmanagedHandle.cs
- _SslStream.cs
- RTLAwareMessageBox.cs
- OperationCanceledException.cs
- QueryableDataSourceEditData.cs
- DispatcherBuilder.cs
- WorkflowOwnerAsyncResult.cs
- ApplicationId.cs
- ChildChangedEventArgs.cs
- CfgRule.cs
- RelatedPropertyManager.cs
- EntityTransaction.cs
- XPathDocument.cs
- DesignerUtility.cs
- JsonObjectDataContract.cs
- RuleSettings.cs
- CodeTypeDeclaration.cs
- FileDialogPermission.cs
- BinaryObjectInfo.cs
- ConfigurationLocation.cs
- DbParameterCollectionHelper.cs
- DataGridViewBindingCompleteEventArgs.cs
- KeyGestureValueSerializer.cs
- ToolStripItemDesigner.cs
- SectionInformation.cs
- CultureInfoConverter.cs
- ListBindingHelper.cs
- SafeFileMapViewHandle.cs
- PreviewKeyDownEventArgs.cs
- SafeRightsManagementPubHandle.cs
- TextElementEnumerator.cs
- FixedBufferAttribute.cs
- XamlTypeMapper.cs
- Int64Animation.cs
- IHttpResponseInternal.cs
- DataObject.cs
- QilPatternFactory.cs
- DataGridViewCellMouseEventArgs.cs
- WebEventTraceProvider.cs
- PreservationFileWriter.cs
- PropertyEntry.cs
- BitmapEffectDrawing.cs
- SpellerInterop.cs
- IgnoreSectionHandler.cs
- WindowInteropHelper.cs
- PtsHost.cs
- UnderstoodHeaders.cs
- XmlSchemaSubstitutionGroup.cs
- TimeoutConverter.cs
- NodeLabelEditEvent.cs
- SqlRecordBuffer.cs
- MutexSecurity.cs
- SerialStream.cs
- AbstractDataSvcMapFileLoader.cs
- TextEditorDragDrop.cs
- TabItemWrapperAutomationPeer.cs
- TypeBuilder.cs
- DoubleLinkList.cs
- Action.cs
- Viewport3DAutomationPeer.cs
- storepermissionattribute.cs
- AttributeEmitter.cs
- MultiView.cs
- EventWaitHandle.cs
- WizardStepBase.cs
- PixelFormats.cs
- SqlInternalConnectionTds.cs
- ChangePassword.cs
- WorkflowItemsPresenter.cs
- IODescriptionAttribute.cs
- FreeIndexList.cs
- SoapSchemaExporter.cs
- UnitySerializationHolder.cs
- ListContractAdapter.cs
- PageParser.cs
- DbUpdateCommandTree.cs
- QualifiedCellIdBoolean.cs
- RepeatBehavior.cs
- QueryHandler.cs
- CodeAttachEventStatement.cs
- BuildProviderUtils.cs
- CompleteWizardStep.cs
- FocusTracker.cs
- PhysicalFontFamily.cs
- JapaneseCalendar.cs
- CompilerTypeWithParams.cs
- BinaryWriter.cs
- VectorKeyFrameCollection.cs