Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / Dom / XmlDomTextWriter.cs / 1 / XmlDomTextWriter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System; using System.IO; using System.Text; // 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 ) { } 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProcessHostConfigUtils.cs
- transactioncontext.cs
- EntityCodeGenerator.cs
- BitmapScalingModeValidation.cs
- LinkLabelLinkClickedEvent.cs
- ExtensionWindowResizeGrip.cs
- SupportedAddressingMode.cs
- ListViewItemMouseHoverEvent.cs
- XPathDocumentNavigator.cs
- QuotedPrintableStream.cs
- JournalEntryStack.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RawAppCommandInputReport.cs
- ObjectViewEntityCollectionData.cs
- XmlnsDefinitionAttribute.cs
- SmiEventStream.cs
- StickyNoteAnnotations.cs
- DropTarget.cs
- SecurityHelper.cs
- BaseResourcesBuildProvider.cs
- XmlBufferReader.cs
- PaintEvent.cs
- Int32AnimationUsingKeyFrames.cs
- CookielessHelper.cs
- DBCommandBuilder.cs
- HwndSubclass.cs
- COM2IDispatchConverter.cs
- SettingsAttributeDictionary.cs
- DataGridViewRowHeaderCell.cs
- TraceHwndHost.cs
- RegisteredDisposeScript.cs
- CredentialCache.cs
- ScalarRestriction.cs
- VectorCollectionConverter.cs
- JsonReader.cs
- Utils.cs
- IntSumAggregationOperator.cs
- ChildDocumentBlock.cs
- DebugController.cs
- UnitySerializationHolder.cs
- SupportingTokenSpecification.cs
- SqlDataSourceCommandEventArgs.cs
- MaskedTextBox.cs
- ErrorRuntimeConfig.cs
- AmbientValueAttribute.cs
- HtmlTableCellCollection.cs
- unsafenativemethodsother.cs
- TypeConverterHelper.cs
- XmlDataContract.cs
- ToggleButton.cs
- WebPartMenu.cs
- GridProviderWrapper.cs
- Brushes.cs
- ConfigXmlWhitespace.cs
- HttpProcessUtility.cs
- OrderPreservingPipeliningMergeHelper.cs
- StartUpEventArgs.cs
- XmlLangPropertyAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- LogReserveAndAppendState.cs
- MaskedTextBoxDesignerActionList.cs
- WindowsGraphics.cs
- TextContainerHelper.cs
- IDQuery.cs
- HitTestResult.cs
- EventWaitHandle.cs
- UriTemplatePathSegment.cs
- DetailsViewCommandEventArgs.cs
- AsyncResult.cs
- CriticalExceptions.cs
- FontUnitConverter.cs
- XmlSchemaAnnotation.cs
- AuthenticationSection.cs
- ExpandCollapseProviderWrapper.cs
- AlphabeticalEnumConverter.cs
- Exceptions.cs
- PageSetupDialog.cs
- RecordsAffectedEventArgs.cs
- HtmlInputPassword.cs
- NamespaceListProperty.cs
- ImageDrawing.cs
- SafeHandles.cs
- WebServiceErrorEvent.cs
- SymLanguageVendor.cs
- DmlSqlGenerator.cs
- XPathCompileException.cs
- LinkClickEvent.cs
- TableLayoutSettings.cs
- SystemTcpStatistics.cs
- WebPartDescription.cs
- RunWorkerCompletedEventArgs.cs
- DataFormats.cs
- UriTemplateDispatchFormatter.cs
- CollectionView.cs
- LinkArea.cs
- XmlSerializationReader.cs
- OutputCacheSettingsSection.cs
- Rect.cs
- MediaContextNotificationWindow.cs
- WorkItem.cs