Code:
/ FX-1434 / FX-1434 / 1.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
- ViewGenerator.cs
- DSASignatureFormatter.cs
- Schema.cs
- WebEvents.cs
- RepeaterItemCollection.cs
- TemplateContentLoader.cs
- PrintPreviewGraphics.cs
- TemplatePartAttribute.cs
- ExpandedWrapper.cs
- DragDrop.cs
- CLSCompliantAttribute.cs
- SetUserLanguageRequest.cs
- CheckedListBox.cs
- ParserExtension.cs
- XamlPoint3DCollectionSerializer.cs
- ProfileSettingsCollection.cs
- HttpModulesSection.cs
- IMembershipProvider.cs
- PassportAuthentication.cs
- AddressAccessDeniedException.cs
- SerializerWriterEventHandlers.cs
- EntityProviderServices.cs
- XmlImplementation.cs
- Point3DAnimation.cs
- SimpleHandlerFactory.cs
- ConfigXmlCDataSection.cs
- XmlReflectionImporter.cs
- LinqDataSourceView.cs
- ExpressionVisitorHelpers.cs
- WsdlBuildProvider.cs
- CurrentChangingEventManager.cs
- BasicExpressionVisitor.cs
- PageHandlerFactory.cs
- UnsafeNativeMethods.cs
- TypeElement.cs
- ControlIdConverter.cs
- PrintDialog.cs
- PersonalizationProvider.cs
- ZipIORawDataFileBlock.cs
- RequestSecurityTokenForGetBrowserToken.cs
- XmlReflectionMember.cs
- Privilege.cs
- TemplateField.cs
- FlowDocumentPaginator.cs
- ShimAsPublicXamlType.cs
- DotExpr.cs
- DragCompletedEventArgs.cs
- XmlUnspecifiedAttribute.cs
- FragmentQueryKB.cs
- TypeElement.cs
- XmlSubtreeReader.cs
- Utils.cs
- TargetException.cs
- UnauthorizedWebPart.cs
- PointCollectionConverter.cs
- Attribute.cs
- LocalizableAttribute.cs
- HtmlTableCell.cs
- InternalResources.cs
- SyndicationDeserializer.cs
- ObservableCollection.cs
- ScaleTransform.cs
- ISAPIRuntime.cs
- GlobalEventManager.cs
- ManifestResourceInfo.cs
- TextEditorSelection.cs
- ByteStreamGeometryContext.cs
- XmlSchemaInferenceException.cs
- MsmqTransportElement.cs
- CaseExpr.cs
- OdbcEnvironment.cs
- HttpRequest.cs
- Configuration.cs
- XmlNodeChangedEventArgs.cs
- TimeSpan.cs
- XmlSchemaSimpleTypeList.cs
- HtmlInputImage.cs
- EventDescriptor.cs
- BooleanExpr.cs
- XmlAnyAttributeAttribute.cs
- DataGridViewToolTip.cs
- FunctionUpdateCommand.cs
- MsmqInputChannelBase.cs
- UITypeEditor.cs
- XmlLoader.cs
- AvTraceFormat.cs
- LowerCaseStringConverter.cs
- DbDataAdapter.cs
- SystemTcpStatistics.cs
- Config.cs
- ApplyImportsAction.cs
- GridViewRowEventArgs.cs
- Input.cs
- AuthenticationModuleElementCollection.cs
- TextModifierScope.cs
- NullableLongMinMaxAggregationOperator.cs
- DPAPIProtectedConfigurationProvider.cs
- InputScopeAttribute.cs
- Types.cs
- StatusBarItemAutomationPeer.cs