You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
9
5
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.
12
10
13
11
### 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
+
16
15
#### Environment variables
17
16
No environment variables need to be set.
18
17
@@ -21,30 +20,23 @@ No environment variables need to be set.
21
20
### XML to JSON
22
21
Takes XML string and converts it to generic JSON object.
23
22
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.
27
27
28
28
### 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.
0 commit comments