Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- MouseEventArgs.cs
- ProfileBuildProvider.cs
- Substitution.cs
- AliasExpr.cs
- TemplatePropertyEntry.cs
- UnmanagedMemoryAccessor.cs
- ListenerAdapterBase.cs
- CodePropertyReferenceExpression.cs
- PolyLineSegment.cs
- InstanceOwnerException.cs
- CursorConverter.cs
- MobileControl.cs
- FixedSOMLineRanges.cs
- XmlAttributeHolder.cs
- CaseInsensitiveHashCodeProvider.cs
- TableLayoutSettingsTypeConverter.cs
- ListViewInsertionMark.cs
- DefaultHttpHandler.cs
- GatewayIPAddressInformationCollection.cs
- SelfIssuedSamlTokenFactory.cs
- CellQuery.cs
- WindowsPen.cs
- ConfigurationSettings.cs
- CodeExporter.cs
- _HelperAsyncResults.cs
- PrivacyNoticeBindingElementImporter.cs
- AngleUtil.cs
- NavigationFailedEventArgs.cs
- SqlCacheDependencySection.cs
- WorkflowClientDeliverMessageWrapper.cs
- PointConverter.cs
- PropertyMetadata.cs
- DependencyPropertyHelper.cs
- MemoryPressure.cs
- StringDictionaryEditor.cs
- Item.cs
- BlockCollection.cs
- BooleanExpr.cs
- Win32KeyboardDevice.cs
- SaveFileDialog.cs
- Crc32Helper.cs
- InArgumentConverter.cs
- DataSysAttribute.cs
- BitmapDecoder.cs
- OdbcConnectionStringbuilder.cs
- TextElement.cs
- CodeObjectCreateExpression.cs
- ViewBox.cs
- ObjectCacheHost.cs
- Types.cs
- JournalEntryStack.cs
- HttpCapabilitiesSectionHandler.cs
- XslUrlEditor.cs
- HandleCollector.cs
- StringFormat.cs
- SystemException.cs
- PartialTrustHelpers.cs
- TabRenderer.cs
- Opcode.cs
- XmlSchemaComplexType.cs
- ByteStorage.cs
- mediaeventshelper.cs
- EntityDataSourceDataSelectionPanel.cs
- DataBoundControlAdapter.cs
- AliasedSlot.cs
- NativeMethods.cs
- FlowDocumentReaderAutomationPeer.cs
- QueryModel.cs
- ISCIIEncoding.cs
- ReadOnlyNameValueCollection.cs
- FieldBuilder.cs
- QuaternionAnimationBase.cs
- IxmlLineInfo.cs
- ImageField.cs
- DurationConverter.cs
- EditingCoordinator.cs
- EntitySet.cs
- EncodingInfo.cs
- SchemaImporterExtensionsSection.cs
- XsltContext.cs
- XmlSchemaInfo.cs
- WebPartConnectVerb.cs
- DBDataPermissionAttribute.cs
- OleDbEnumerator.cs
- TranslateTransform.cs
- DataGridViewSortCompareEventArgs.cs
- ExpressionEditorAttribute.cs
- XomlCompiler.cs
- MetadataUtilsSmi.cs
- XmlValueConverter.cs
- ToolStripScrollButton.cs
- IdentityReference.cs
- WinOEToolBoxItem.cs
- FixedTextContainer.cs
- ObjectItemAssemblyLoader.cs
- SaveFileDialog.cs
- TargetControlTypeAttribute.cs
- CategoryAttribute.cs
- SynchronousChannel.cs
- EnumerableRowCollectionExtensions.cs