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
- xamlnodes.cs
- StaticResourceExtension.cs
- XmlWrappingReader.cs
- ExpressionVisitor.cs
- SqlDataSourceQueryEditor.cs
- SiteMapPath.cs
- UnsafeNativeMethods.cs
- SerialPinChanges.cs
- ImageDrawing.cs
- ContextBase.cs
- ListSurrogate.cs
- SoapWriter.cs
- Semaphore.cs
- AspCompat.cs
- TextEffectResolver.cs
- ToolboxControl.cs
- ReadContentAsBinaryHelper.cs
- QueryExpression.cs
- Imaging.cs
- SelectionPattern.cs
- DefaultEventAttribute.cs
- SoapUnknownHeader.cs
- DbLambda.cs
- TemplateAction.cs
- DisplayNameAttribute.cs
- ValueSerializerAttribute.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SamlEvidence.cs
- ADMembershipProvider.cs
- CaseInsensitiveOrdinalStringComparer.cs
- HotSpot.cs
- UnmanagedMemoryStreamWrapper.cs
- RowToFieldTransformer.cs
- FrameworkTextComposition.cs
- StateItem.cs
- Timeline.cs
- SqlServices.cs
- TypeConverterHelper.cs
- WebPartConnectionsDisconnectVerb.cs
- ScaleTransform.cs
- KeyPressEvent.cs
- MetabaseSettings.cs
- CatalogZone.cs
- XPathException.cs
- wgx_commands.cs
- InheritanceAttribute.cs
- CodeExporter.cs
- ControlIdConverter.cs
- PingOptions.cs
- DriveNotFoundException.cs
- LoadGrammarCompletedEventArgs.cs
- BypassElement.cs
- EnlistmentTraceIdentifier.cs
- MetaDataInfo.cs
- RangeContentEnumerator.cs
- KeyNotFoundException.cs
- _ScatterGatherBuffers.cs
- SHA1Managed.cs
- WindowsRichEdit.cs
- MgmtConfigurationRecord.cs
- XmlSerializableReader.cs
- ReadOnlyDictionary.cs
- XmlSchemaChoice.cs
- PeerHelpers.cs
- BaseDataBoundControl.cs
- BmpBitmapEncoder.cs
- GridViewSortEventArgs.cs
- ConstraintConverter.cs
- MetadataPropertyAttribute.cs
- DefaultValueTypeConverter.cs
- IdentityModelStringsVersion1.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- StylusEditingBehavior.cs
- HideDisabledControlAdapter.cs
- VisualStyleInformation.cs
- GeometryGroup.cs
- _SafeNetHandles.cs
- AncillaryOps.cs
- PolyLineSegmentFigureLogic.cs
- DataGridViewRowCollection.cs
- QilSortKey.cs
- ProcessHostConfigUtils.cs
- AttributeCollection.cs
- DecimalAnimation.cs
- PageEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlEnums.cs
- EntityContainerEmitter.cs
- SqlCharStream.cs
- EmbeddedObject.cs
- BaseTransportHeaders.cs
- StandardMenuStripVerb.cs
- ContextMenu.cs
- Accessors.cs
- XmlChildEnumerator.cs
- RecordsAffectedEventArgs.cs
- SignedPkcs7.cs
- CacheChildrenQuery.cs
- DataBindingCollection.cs
- RegexNode.cs