XmlSource<TOutput>
Class XmlSource<TOutput>
Reads data from a xml source. This can be any http resource or a file. By default, data is pulled via httpclient. Use the ResourceType property to read data from a file.
Inheritance
Inherited Members
Namespace: ETLBox.Xml
Assembly: ETLBox.Xml.dll
Syntax
Type Parameters
Name | Description |
---|---|
TOutput |
Examples
XmlSource<POCO> source = new XmlSource<POCO>("https://test.com");
Constructors
XmlSource()
Declaration
XmlSource(string)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The source xml file name or uri |
XmlSource(string, ResourceType)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The source 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
AttributePrefixForDynamic
Declaration
Property Value
Type | Description |
---|---|
string |
CollectUnparsedData
If set to true, the source will collect all xml data that is not parsed during the process and store it in the UnparsedData property. Default is false.
Declaration
Property Value
Type | Description |
---|---|
bool |
Overrides
ElementName
The element name of the document that contains an item of the data to be parsed
Declaration
Property Value
Type | Description |
---|---|
string |
Namespace
Optional: The namespace of the element which name is specified in ElementName
Declaration
Property Value
Type | Description |
---|---|
string |
RetrieveElementFunc
Instead of deifning
Declaration
Property Value
Type | Description |
---|---|
Func<StreamMetaData, bool> |
TextPrefixForDynamic
Declaration
Property Value
Type | Description |
---|---|
string |
XmlReaderSettings
The XmlReaderSettings used when creating the XmlReader. Please see XmlReaderSettings for more details.
Declaration
Property Value
Type | Description |
---|---|
XmlReaderSettings |
XmlSerializer
The XmlSerializer used to deserialize the xml into the used data type.
Declaration
Property Value
Type | Description |
---|---|
XmlSerializer |