Difference between revisions of "Component: XML JSON Parser (Runtime Tools)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_XMLParser.fcfx FC_Comp_Source_XMLParser.fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_XMLParser.fcfx FC_Comp_Source_XMLParser.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 48: | Line 48: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Latest revision as of 13:13, 7 February 2023
| Author | MatrixTSL | 
| Version | 1.0 | 
| Category | Runtime Tools | 
Contents
- 1 XML JSON Parser component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 AddObject
- 5.2 BuildJSONString
- 5.3 BuildXMLString
- 5.4 ClearObjects
- 5.5 DeleteObject
- 5.6 FindNextObject
- 5.7 FindNextObjectString
- 5.8 FindObject
- 5.9 FindObjectString
- 5.10 GetObjectString
- 5.11 GetObjectTag
- 5.12 GetRootHandle
- 5.13 ParseJSONDataString
- 5.14 ParseXMLDataString
- 5.15 SetObjectString
- 5.16 SetObjectTag
 
- 6 Property reference
XML JSON Parser component
A component designed to simplify the collection of data from XML and JSON sources. Parses the raw data and creates a dynamic representation of the data that is easy to navigate and interrogate. Also allows the objects to be manually created or edited and then re-exported as XML or JSON format.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_XMLParser.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_XMLParser.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AddObject
BuildJSONString
|   | BuildJSONString | 
| Generate a JSON string based on the current objects inside the component. | |
|  - STRING | Return | 
BuildXMLString
|   | BuildXMLString | 
| Generate a XML string based on the current objects inside the component. | |
|  - STRING | Return | 
ClearObjects
|   | ClearObjects | 
| Deletes all object data ready for fresh input | |
|  - VOID | Return | 
DeleteObject
|   | DeleteObject | 
| Deletes a selected tag object. | |
|  - HANDLE | Object | 
| Handle to the object | |
|  - BOOL | Return | 
FindNextObject
FindNextObjectString
|   | FindNextObjectString | 
| Searches for and then collects the data string from the specified path. Returns the first matching path from the last search | |
|  - STRING | SubObjPath | 
| e.g. "item.title" | |
|  - STRING | Return | 
FindObject
|   | FindObject | 
| Finds the first instance of an object. Returns the first matching path from the root. Returns 0 if the path was not found. | |
|  - STRING | ObjPath | 
| e.g. "rss.channel.title" | |
|  - HANDLE | Return | 
FindObjectString
|   | FindObjectString | 
| Searches for and then collects the data string from the specified path. Returns the first matching path from the root. | |
|  - STRING | ObjPath | 
| e.g. "rss.channel.title" | |
|  - STRING | Return | 
GetObjectString
|   | GetObjectString | 
| Collects the data string from the specified object. | |
|  - HANDLE | Object | 
| Handle to the object | |
|  - STRING | Return | 
GetObjectTag
|   | GetObjectTag | 
| Collects the tag string from the specified object. | |
|  - HANDLE | Object | 
| Handle to the object | |
|  - STRING | Return | 
GetRootHandle
|   | GetRootHandle | 
| Allows for user to step through the objects manually using the inbuilt runtime api calls. | |
|  - HANDLE | Return | 
ParseJSONDataString
ParseXMLDataString
SetObjectString
|   | SetObjectString | 
| Sets the data string of an existing object. | |
|  - HANDLE | Object | 
| Handle to the object | |
|  - STRING | Data | 
|  - VOID | Return | 
SetObjectTag
|   | SetObjectTag | 
| Sets the tag name of an existing object. | |
|  - HANDLE | Object | 
| Handle to the object | |
|  - STRING | Tag | 
|  - VOID | Return | 
Property reference
|   | Properties | 

