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
- TypeInfo.cs
- SemaphoreFullException.cs
- TrustLevelCollection.cs
- WebHttpBinding.cs
- ResourceExpressionBuilder.cs
- AssemblyAttributes.cs
- MailSettingsSection.cs
- PackWebResponse.cs
- IntranetCredentialPolicy.cs
- FilteredReadOnlyMetadataCollection.cs
- ExpressionHelper.cs
- HttpWebRequest.cs
- SizeFConverter.cs
- PreviewKeyDownEventArgs.cs
- CallContext.cs
- SqlLiftWhereClauses.cs
- InvalidOleVariantTypeException.cs
- PersonalizationStateQuery.cs
- CodeGenerator.cs
- DebugView.cs
- Int64Converter.cs
- InfoCardMetadataExchangeClient.cs
- PenThreadWorker.cs
- HtmlTextBoxAdapter.cs
- ReliableChannelBinder.cs
- RoleManagerModule.cs
- RouteTable.cs
- DisableDpiAwarenessAttribute.cs
- ToolStripSplitStackLayout.cs
- sqlpipe.cs
- SessionIDManager.cs
- AmbientLight.cs
- SoapIncludeAttribute.cs
- ProfileSettingsCollection.cs
- NameValuePermission.cs
- SchemaHelper.cs
- ButtonFieldBase.cs
- UserPrincipalNameElement.cs
- MessageBox.cs
- Base64Decoder.cs
- DataGridViewLinkColumn.cs
- OracleConnectionStringBuilder.cs
- HtmlInputButton.cs
- ObjectCloneHelper.cs
- InvalidEnumArgumentException.cs
- UmAlQuraCalendar.cs
- Item.cs
- DockEditor.cs
- FixedDSBuilder.cs
- FloaterParagraph.cs
- Set.cs
- DashStyle.cs
- WebPartMovingEventArgs.cs
- StoreItemCollection.cs
- BinaryReader.cs
- HMACSHA1.cs
- ThreadPool.cs
- InfoCardSymmetricCrypto.cs
- RuleSettings.cs
- CommentEmitter.cs
- BStrWrapper.cs
- CleanUpVirtualizedItemEventArgs.cs
- WizardSideBarListControlItemEventArgs.cs
- EntityCollection.cs
- QueryResults.cs
- XAMLParseException.cs
- KeyTime.cs
- SecureConversationDriver.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- WorkflowInlining.cs
- SelectedCellsChangedEventArgs.cs
- WebConfigurationHostFileChange.cs
- ResourceWriter.cs
- Directory.cs
- Attributes.cs
- BamlResourceDeserializer.cs
- AbstractSvcMapFileLoader.cs
- ArrangedElement.cs
- URLMembershipCondition.cs
- SingleObjectCollection.cs
- AnnouncementService.cs
- TranslateTransform3D.cs
- LayoutEvent.cs
- Funcletizer.cs
- LinqDataSourceStatusEventArgs.cs
- CultureSpecificStringDictionary.cs
- WinInetCache.cs
- OrderedDictionary.cs
- ScrollPattern.cs
- AdapterUtil.cs
- X509Utils.cs
- ArithmeticLiteral.cs
- ProtocolElement.cs
- SecureConversationVersion.cs
- CodeTypeMember.cs
- Rfc2898DeriveBytes.cs
- COM2ExtendedTypeConverter.cs
- TypeBrowserDialog.cs
- Cursors.cs
- Container.cs