Skip to content

Commit bac3753

Browse files
authored
Merge pull request #19 from elasticio/issue-7-update-readme
Updated README and created CHANGELOG
2 parents b5c49b9 + 9c52433 commit bac3753

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 1.1.0 (June 24, 2019)
2+
3+
* Update `README`
4+
5+
## 1.0.0 (December 29, 2016)
6+
7+
* Initial release

README.md

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
2-
# xml-component
1+
# XML Component
32

43
## Description
5-
This is an open source component for Converting XML to and from JSON on elastic.io platform.
6-
Component to be used on the elastic.io platform, which is able to convert XML to and from JSON.
7-
### Purpose
8-
This component has 3 actions allowing users to pass in either generic but well format XML/JSON string or XML attachment and produces a generic string of the other file type. The output then can be maped and used in other components.
4+
elastic.io iPaaS component to convert between XML and JSON data.
95

10-
### How it works.
11-
Before you can deploy any code into elastic.io you must be a registered elastic.io platform user. Please see our home page at http://www.elastic.io to learn how.
6+
### Purpose
7+
Allows users to convert XML attachments and strings to and from JSON
8+
This component has 3 actions allowing users to pass in either generic but well format XML/JSON string or XML attachment
9+
and produces a generic string of the other file type. The output then can be maped and used in other components.
1210

1311
### Requirements
14-
Provided XML document (for `XML to JSON`) should be [well-formed](https://en.wikipedia.org/wiki/Well-formed_document) in order to be parsed correctly.
15-
You will get an error otherwise.
12+
Provided XML document (for `XML to JSON`) should be [well-formed](https://en.wikipedia.org/wiki/Well-formed_document)
13+
in order to be parsed correctly. You will get an error otherwise.
14+
1615
#### Environment variables
1716
No environment variables need to be set.
1817

@@ -21,30 +20,23 @@ No environment variables need to be set.
2120
### XML to JSON
2221
Takes XML string and converts it to generic JSON object.
2322

24-
#### Schemas
25-
[input schema](lib/schemas/xmlToJson.in.json) \
26-
[output schema](lib/schemas/xmlToJson.out.json)
23+
### XML Attachment to JSON
24+
Looks at the JSON array of attachments passed in to component and converts all XML that it finds to generic JSON objects
25+
and produces one outbound message per matching attachment. As input, the user can enter a patter pattern for filtering
26+
files by name or leave this field empty for processing all incoming *.xml files.
2727

2828
### JSON to XML
29-
Takes the body of message passed into the component and converts to generic XML string
30-
31-
#### Schemas
32-
[output schema](lib/schemas/jsonToXml.out.json)
33-
34-
### XML Attachment to Json
35-
Looks at the json array of attachments passed in to component and converts all XML found to generic JSON object
36-
37-
#### Input field
38-
**Pattern to Match Files** - enter pattern for filtering files by name or leave this field empty for processing all incoming *.xml files.
39-
40-
#### Schemas
41-
[output schema](lib/schemas/xmlToJson.out.json)
42-
43-
#### Known limitations
44-
- The maximum size of incoming file for processing is 5 MiB. If the size of incoming file will be more than 5 MiB, action will throw error `Attachment *.xml is to large to be processed my XML component. File limit is: 5242880 byte, file given was: * byte.`.
45-
- Action does not support local agents due to current platform limitations.
29+
Treats incoming message body as JSON and converts it to a generic XML string.
30+
31+
## Known limitations
32+
- The maximum size of incoming file for processing is 5 MiB. If the size of incoming file will be more than 5 MiB,
33+
action will throw error `Attachment *.xml is to large to be processed by XML component. File limit is: 5242880 byte,
34+
file given was: * byte.`.
35+
- `XML Attachemnt to JSON` action does not support local agents due to current platform limitations.
36+
37+
## Additional Info
38+
Icon made by Freepik from www.flaticon.com
4639

4740
## License
4841

4942
Apache-2.0 © [elastic.io GmbH](https://elastic.io)
50-
Icon made by Freepik from www.flaticon.com

0 commit comments

Comments
 (0)