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
- SpeechEvent.cs
- DisposableCollectionWrapper.cs
- Utils.cs
- QuaternionRotation3D.cs
- Matrix3DConverter.cs
- XamlTypeMapper.cs
- RenderDataDrawingContext.cs
- SqlConnectionPoolProviderInfo.cs
- PropertyDescriptorCollection.cs
- ThemeDictionaryExtension.cs
- ExpressionPrinter.cs
- SuppressIldasmAttribute.cs
- CatalogPartChrome.cs
- UndoEngine.cs
- MetabaseServerConfig.cs
- FrugalList.cs
- XmlSchemaAnyAttribute.cs
- SchemaNames.cs
- BuildProvidersCompiler.cs
- DynamicPropertyHolder.cs
- FontSizeConverter.cs
- FigureHelper.cs
- DataSourceControlBuilder.cs
- SchemaDeclBase.cs
- AnnotationResource.cs
- CookieHandler.cs
- WindowsSlider.cs
- StartFileNameEditor.cs
- NativeMethods.cs
- RestHandler.cs
- DrawingGroup.cs
- MenuItemStyle.cs
- MdiWindowListItemConverter.cs
- RequestResizeEvent.cs
- SyndicationSerializer.cs
- ApplicationBuildProvider.cs
- SafeFileMappingHandle.cs
- TextRunTypographyProperties.cs
- NotifyIcon.cs
- InvokeHandlers.cs
- SHA384.cs
- RecordConverter.cs
- SettingsPropertyCollection.cs
- ComplexTypeEmitter.cs
- DrawListViewSubItemEventArgs.cs
- DataTable.cs
- ResourcesGenerator.cs
- MarshalByValueComponent.cs
- PropertyConverter.cs
- Fonts.cs
- XslTransform.cs
- XmlSchemaDocumentation.cs
- FragmentQueryKB.cs
- SafeIUnknown.cs
- GridEntryCollection.cs
- IdleTimeoutMonitor.cs
- Iis7Helper.cs
- IntSecurity.cs
- EntityConnection.cs
- ContactManager.cs
- Base64Stream.cs
- SemanticResultValue.cs
- OdbcReferenceCollection.cs
- ExceptionUtil.cs
- ProxyGenerationError.cs
- MetadataArtifactLoaderComposite.cs
- AppDomain.cs
- DropSource.cs
- SimpleRecyclingCache.cs
- X509CertificateClaimSet.cs
- SafeNativeMethods.cs
- figurelengthconverter.cs
- SelectorItemAutomationPeer.cs
- DrawingState.cs
- ParseHttpDate.cs
- ObjectDataSourceSelectingEventArgs.cs
- WebPartDeleteVerb.cs
- ZeroOpNode.cs
- EmulateRecognizeCompletedEventArgs.cs
- ClockGroup.cs
- LinkLabel.cs
- PointUtil.cs
- NativeMethods.cs
- DataObjectCopyingEventArgs.cs
- CredentialCache.cs
- BrowserCapabilitiesFactoryBase.cs
- BinaryCommonClasses.cs
- DecimalAverageAggregationOperator.cs
- TextEditorTyping.cs
- LoginName.cs
- RemotingException.cs
- TransformedBitmap.cs
- Activity.cs
- UnmanagedMemoryStreamWrapper.cs
- CuspData.cs
- entityreference_tresulttype.cs
- SettingsAttributeDictionary.cs
- AspNetPartialTrustHelpers.cs
- CoreSwitches.cs
- _LazyAsyncResult.cs