Class XmlDestination<TInput>

A Xml destination defines a xml file where data from the flow is inserted.

Inheritance
System.Object
XmlDestination<TInput>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.Xml.dll
Syntax
    public class XmlDestination<TInput> : DataFlowStreamDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, IDataFlowStreamDestination
Type Parameters
NameDescription
TInput

Type of ingoing data

Examples
XmlDestination<MyRow> dest = new XmlDestination<MyRow>("/path/to/file.json");
dest.Wait(); //Wait for all data to arrive

Constructors

XmlDestination()

Declaration
    public XmlDestination()

XmlDestination(String)

Declaration
    public XmlDestination(string uri)
Parameters
TypeNameDescription
System.Stringuri

XmlDestination(String, ResourceType)

Declaration
    public XmlDestination(string uri, ResourceType resourceType)
Parameters
TypeNameDescription
System.Stringuri
ResourceTyperesourceType

Properties

DynamicElementName

For ExpandoObject, the default xml element name is <Dynamic> Change this value for dynamic objects here.

Declaration
    public string DynamicElementName { get; set; }
Property Value
TypeDescription
System.String

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
System.String
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.HttpContentType

NS

Namespaces used for the serialization (not applicable for dynamic objects). By default an empty namespace is added - xml will be generated without any namespace, which most likely is the desired behavior.

Declaration
    public XmlSerializerNamespaces NS { get; set; }
Property Value
TypeDescription
System.Xml.Serialization.XmlSerializerNamespaces

RootElementName

The name of the root element for the xml output. Default is <root>

Declaration
    public string RootElementName { get; set; }
Property Value
TypeDescription
System.String

Settings

The System.Xml.XmlWriterSettings for the XmlWriter.

Declaration
    public XmlWriterSettings Settings { get; set; }
Property Value
TypeDescription
System.Xml.XmlWriterSettings

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CheckParameter()

CloseStream()

Declaration
    protected override void CloseStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CloseStream()

InitStream()

Declaration
    protected override void InitStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.InitStream()

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.WriteIntoStream(TInput)

Implements