XmlDestination<TInput>
Class XmlDestination<TInput>
A Xml destination defines a xml file where data from the flow is inserted.
Inherited Members
Namespace: ETLBox.Xml
Assembly: ETLBox.Xml.dll
Syntax
Type Parameters
Name | Description |
---|---|
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
XmlDestination(string)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination xml file name or uri |
XmlDestination(string, ResourceType)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination xml file name or uri |
ResourceType | resourceType | Specifies if data is loaded from a file, a web endpoint or other storage types (e.g. Azure Blob Storage) |
Properties
DynamicElementName
For ExpandoObject, the default xml element name is <Dynamic> Change this value for dynamic objects here.
Declaration
Property Value
Type | Description |
---|---|
string |
HttpContentType
The content type used when sending the http request content.
Declaration
Property Value
Type | Description |
---|---|
string |
Overrides
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
Property Value
Type | Description |
---|---|
XmlSerializerNamespaces |
RootElementName
The name of the root element for the xml output. Default is <root>
Declaration
Property Value
Type | Description |
---|---|
string |
RootElementNamespace
Declaration
Property Value
Type | Description |
---|---|
string |
RootElementPrefix
Declaration
Property Value
Type | Description |
---|---|
string |
Settings
The System.Xml.XmlWriterSettings for the XmlWriter.
Declaration
Property Value
Type | Description |
---|---|
XmlWriterSettings |
Methods
CheckParameter()
Declaration
Overrides
CloseStream()
Declaration
Overrides
InitStream()
Declaration
Overrides
SetDefaultNamespace(XElement, XNamespace)
Sets the default XML namespace of this System.Xml.Linq.XElement and all its descendants
Declaration
Parameters
Type | Name | Description |
---|---|---|
XElement | element | |
XNamespace | newXmlns |
WriteIntoStream(TInput)
Declaration
Parameters
Type | Name | Description |
---|---|---|
TInput | data |