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
- LambdaCompiler.Statements.cs
- HttpStaticObjectsCollectionWrapper.cs
- Context.cs
- TableLayout.cs
- ComponentRenameEvent.cs
- IIS7UserPrincipal.cs
- XmlSchemaSet.cs
- SplashScreen.cs
- ScriptReferenceBase.cs
- ClientUrlResolverWrapper.cs
- ControlEvent.cs
- DataGridViewComboBoxEditingControl.cs
- PointCollectionValueSerializer.cs
- AsyncOperation.cs
- PackagePartCollection.cs
- PathFigureCollectionValueSerializer.cs
- SolidBrush.cs
- DirectoryObjectSecurity.cs
- BinHexEncoder.cs
- ActivitySurrogate.cs
- MeasureData.cs
- DesignBindingValueUIHandler.cs
- BinaryWriter.cs
- RegexBoyerMoore.cs
- TextModifierScope.cs
- CurrencyWrapper.cs
- DrawingContext.cs
- RepeatButtonAutomationPeer.cs
- ValidateNames.cs
- QueryContinueDragEvent.cs
- ObservableDictionary.cs
- SymbolMethod.cs
- HandlerWithFactory.cs
- UnSafeCharBuffer.cs
- XmlSerializationReader.cs
- QueryableDataSourceHelper.cs
- dtdvalidator.cs
- HtmlTableCell.cs
- DocComment.cs
- MappingMetadataHelper.cs
- SqlGatherProducedAliases.cs
- MiniCustomAttributeInfo.cs
- Context.cs
- ImageKeyConverter.cs
- XmlCompatibilityReader.cs
- ContractHandle.cs
- AesManaged.cs
- AggregationMinMaxHelpers.cs
- MexHttpsBindingCollectionElement.cs
- ToolStripItemDataObject.cs
- Font.cs
- IMembershipProvider.cs
- PolicyChain.cs
- Int32EqualityComparer.cs
- CodeDOMUtility.cs
- RequestCache.cs
- RSAOAEPKeyExchangeFormatter.cs
- WMIInterop.cs
- LinkedList.cs
- SubclassTypeValidator.cs
- XmlEnumAttribute.cs
- LinkedResourceCollection.cs
- TimeEnumHelper.cs
- InputGestureCollection.cs
- PointCollection.cs
- ValidationException.cs
- HtmlInputText.cs
- XmlLoader.cs
- AuthenticationModulesSection.cs
- Shape.cs
- SystemThemeKey.cs
- SR.cs
- SemaphoreFullException.cs
- StorageAssociationTypeMapping.cs
- webclient.cs
- ResourceSetExpression.cs
- TableNameAttribute.cs
- _ListenerRequestStream.cs
- FontSizeConverter.cs
- InputMethodStateChangeEventArgs.cs
- PerformanceCounterPermission.cs
- FunctionImportMapping.cs
- CommandDevice.cs
- ServiceModelSectionGroup.cs
- BookmarkScopeInfo.cs
- SpellerError.cs
- uribuilder.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SQLBoolean.cs
- HttpProfileBase.cs
- GregorianCalendarHelper.cs
- CriticalFinalizerObject.cs
- TextBox.cs
- altserialization.cs
- RawStylusInput.cs
- RC2CryptoServiceProvider.cs
- SizeValueSerializer.cs
- HttpProtocolReflector.cs
- IDispatchConstantAttribute.cs
- SchemaNamespaceManager.cs