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
- CalendarDataBindingHandler.cs
- CollectionConverter.cs
- RegexMatchCollection.cs
- TabItem.cs
- FlowDocumentFormatter.cs
- LingerOption.cs
- WebPartConnectionsConnectVerb.cs
- StringWriter.cs
- SqlException.cs
- Throw.cs
- SiteOfOriginPart.cs
- TimeStampChecker.cs
- MexHttpBindingCollectionElement.cs
- SmiEventSink_Default.cs
- XmlLinkedNode.cs
- ProviderUtil.cs
- HMACSHA384.cs
- ScrollItemPatternIdentifiers.cs
- CopyNamespacesAction.cs
- BitmapEffectGroup.cs
- EntityDataSourceMemberPath.cs
- DataFieldCollectionEditor.cs
- EdmRelationshipRoleAttribute.cs
- HtmlTableRow.cs
- HuffCodec.cs
- SecurityUtils.cs
- SiteMap.cs
- GroupBox.cs
- FixedSOMTextRun.cs
- QilStrConcatenator.cs
- BamlBinaryWriter.cs
- NetworkInterface.cs
- ContentOperations.cs
- TextParagraphProperties.cs
- WebBrowser.cs
- DataGridViewBindingCompleteEventArgs.cs
- AlphabeticalEnumConverter.cs
- XmlDictionaryReaderQuotas.cs
- SafeArrayRankMismatchException.cs
- HotSpot.cs
- MutableAssemblyCacheEntry.cs
- xsdvalidator.cs
- AttachedPropertyBrowsableAttribute.cs
- AssemblyBuilder.cs
- PinnedBufferMemoryStream.cs
- ProviderMetadataCachedInformation.cs
- ReadOnlyDictionary.cs
- SafeThemeHandle.cs
- DataGridViewMethods.cs
- PlaceHolder.cs
- SqlBooleanMismatchVisitor.cs
- MediaElementAutomationPeer.cs
- Image.cs
- PathStreamGeometryContext.cs
- EmptyCollection.cs
- Transactions.cs
- ProtocolViolationException.cs
- TagMapCollection.cs
- SpotLight.cs
- ZoomComboBox.cs
- ConvertEvent.cs
- ExpressionVisitor.cs
- ProfileSettingsCollection.cs
- LinearGradientBrush.cs
- SessionStateItemCollection.cs
- ColorAnimationUsingKeyFrames.cs
- SqlTransaction.cs
- TreeNodeSelectionProcessor.cs
- ColorConverter.cs
- UIAgentRequest.cs
- BaseValidator.cs
- UnsafeNativeMethodsPenimc.cs
- WorkflowViewStateService.cs
- X509Certificate2.cs
- ResourceReferenceKeyNotFoundException.cs
- DataBindingCollection.cs
- SchemaImporterExtension.cs
- InputQueue.cs
- SoundPlayer.cs
- ExcCanonicalXml.cs
- RouteItem.cs
- ByteKeyFrameCollection.cs
- BinaryUtilClasses.cs
- XamlClipboardData.cs
- BindToObject.cs
- CollectionDataContract.cs
- TextDocumentView.cs
- Journaling.cs
- XmlSchemaSequence.cs
- XmlBinaryReader.cs
- GridViewColumnHeaderAutomationPeer.cs
- SignedInfo.cs
- CharEnumerator.cs
- CustomWebEventKey.cs
- XPathNavigatorReader.cs
- LineServicesCallbacks.cs
- FileLoadException.cs
- WindowsButton.cs
- UInt32Storage.cs
- TypePropertyEditor.cs