Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Dom / XmlDomTextWriter.cs / 1305376 / XmlDomTextWriter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System; using System.IO; using System.Text; using System.Runtime.Versioning; // 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 ) { } [ResourceConsumption(ResourceScope.Machine)] [ResourceExposure(ResourceScope.Machine)] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormCollection.cs
- AppDomainProtocolHandler.cs
- DataErrorValidationRule.cs
- SqlDataSourceEnumerator.cs
- Line.cs
- ContextDataSourceView.cs
- Simplifier.cs
- OleDbCommand.cs
- XsdSchemaFileEditor.cs
- Axis.cs
- RoleManagerEventArgs.cs
- ConfigsHelper.cs
- DiscoveryInnerClientAdhoc11.cs
- DataControlExtensions.cs
- ExeConfigurationFileMap.cs
- SystemIPGlobalProperties.cs
- SolidColorBrush.cs
- TextElementEnumerator.cs
- RemotingSurrogateSelector.cs
- BitSet.cs
- SecurityContext.cs
- WebAdminConfigurationHelper.cs
- DecryptRequest.cs
- RectangleHotSpot.cs
- StringInfo.cs
- GcSettings.cs
- DesignerSerializationOptionsAttribute.cs
- Int16Converter.cs
- HMAC.cs
- AccessText.cs
- FrameAutomationPeer.cs
- StatusBarItemAutomationPeer.cs
- SoapReflector.cs
- FontWeightConverter.cs
- UnknownBitmapEncoder.cs
- ReachDocumentPageSerializerAsync.cs
- ParameterReplacerVisitor.cs
- XmlReflectionMember.cs
- FtpWebResponse.cs
- SafeBitVector32.cs
- Axis.cs
- CalendarDay.cs
- ExcCanonicalXml.cs
- CallbackException.cs
- HttpCacheVaryByContentEncodings.cs
- WebCategoryAttribute.cs
- TextCharacters.cs
- GridPatternIdentifiers.cs
- EnumerableRowCollection.cs
- TextTreeTextElementNode.cs
- MonthChangedEventArgs.cs
- DurableOperationContext.cs
- TopClause.cs
- TypeLibConverter.cs
- EFDataModelProvider.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlResolver.cs
- Delay.cs
- BitmapEffectInput.cs
- Rectangle.cs
- SchemaImporterExtensionsSection.cs
- GlyphRunDrawing.cs
- XPathCompiler.cs
- CatalogPartDesigner.cs
- DesignOnlyAttribute.cs
- WebPartManagerDesigner.cs
- BamlRecordWriter.cs
- XmlSchemaAny.cs
- SchemaNotation.cs
- ReverseComparer.cs
- ProfileEventArgs.cs
- CompilationSection.cs
- ObjectMemberMapping.cs
- HtmlLink.cs
- CatalogPart.cs
- WebReferencesBuildProvider.cs
- ToolboxItemCollection.cs
- ProxyWebPartManagerDesigner.cs
- ViewGenResults.cs
- MediaSystem.cs
- PackageDigitalSignatureManager.cs
- HttpContextServiceHost.cs
- LinqDataSourceContextData.cs
- CaseInsensitiveHashCodeProvider.cs
- EraserBehavior.cs
- InternalTypeHelper.cs
- LinearGradientBrush.cs
- StatusBar.cs
- ErrorsHelper.cs
- DataRowChangeEvent.cs
- Path.cs
- CultureInfoConverter.cs
- HashCodeCombiner.cs
- MemoryPressure.cs
- DateTimeConstantAttribute.cs
- GeometryConverter.cs
- ConnectionStringsExpressionBuilder.cs
- CheckBoxField.cs
- ExpressionBuilderCollection.cs
- SafeEventLogWriteHandle.cs