Code:
/ FX-1434 / FX-1434 / 1.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
- RealizationContext.cs
- BaseContextMenu.cs
- ColorBlend.cs
- EntityContainerAssociationSetEnd.cs
- PowerModeChangedEventArgs.cs
- MatrixStack.cs
- wgx_exports.cs
- TreeViewImageIndexConverter.cs
- AnimationLayer.cs
- TypeSystem.cs
- UiaCoreProviderApi.cs
- RMPermissions.cs
- AuthenticationSchemesHelper.cs
- FamilyCollection.cs
- QueryResponse.cs
- TableColumn.cs
- WindowsScrollBar.cs
- ElementProxy.cs
- Internal.cs
- TypeSystem.cs
- ValidationErrorCollection.cs
- CatalogPartChrome.cs
- DocumentPageView.cs
- OleDbDataAdapter.cs
- SrgsRuleRef.cs
- EventTrigger.cs
- UxThemeWrapper.cs
- OutOfProcStateClientManager.cs
- ExpressionLink.cs
- LocalizableAttribute.cs
- Rotation3D.cs
- EntitySqlQueryState.cs
- EntityProxyFactory.cs
- TextElementEditingBehaviorAttribute.cs
- Cursors.cs
- ProtocolsConfiguration.cs
- ServicesUtilities.cs
- StreamingContext.cs
- WindowsTokenRoleProvider.cs
- Socket.cs
- Update.cs
- TextSearch.cs
- ColorConvertedBitmap.cs
- CallSite.cs
- DateTimeFormatInfoScanner.cs
- TemplateBaseAction.cs
- SatelliteContractVersionAttribute.cs
- PocoPropertyAccessorStrategy.cs
- FormViewPagerRow.cs
- MergePropertyDescriptor.cs
- HttpDigestClientElement.cs
- PeerNameRegistration.cs
- RoutedEventHandlerInfo.cs
- RoutedEvent.cs
- ADConnectionHelper.cs
- ServiceConfigurationTraceRecord.cs
- PageHandlerFactory.cs
- XPathNodeHelper.cs
- HistoryEventArgs.cs
- TaskbarItemInfo.cs
- FixedDocumentPaginator.cs
- DataGridViewColumn.cs
- StandardToolWindows.cs
- ValidatingReaderNodeData.cs
- WebBrowserUriTypeConverter.cs
- DBConnectionString.cs
- NameValuePair.cs
- AdRotator.cs
- ButtonBase.cs
- EmbeddedObject.cs
- XhtmlBasicTextViewAdapter.cs
- RemotingService.cs
- DataControlFieldCell.cs
- SiteMapSection.cs
- NegotiationTokenProvider.cs
- safelink.cs
- _NtlmClient.cs
- Byte.cs
- TableProviderWrapper.cs
- RichTextBox.cs
- TableLayoutSettings.cs
- Aggregates.cs
- SqlClientWrapperSmiStream.cs
- XmlSerializerFactory.cs
- AudioLevelUpdatedEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- HealthMonitoringSectionHelper.cs
- QilUnary.cs
- Nullable.cs
- ImpersonateTokenRef.cs
- ZipIOExtraFieldPaddingElement.cs
- ComponentChangingEvent.cs
- CreateRefExpr.cs
- InstanceCreationEditor.cs
- PrivilegedConfigurationManager.cs
- AnnotationHighlightLayer.cs
- DataGridViewComboBoxColumnDesigner.cs
- ColorAnimation.cs
- EpmContentSerializer.cs
- MenuRendererClassic.cs