XDATA Method Return Values (XDATA)


9.8A

 

The XDATA method return values:

 

Error

Value

Meaning

XDATA_ERR_NONE

0

Method executed successfully.

XDATA_ERR_NO_MEM

1

Insufficient memory to execute method.

XDATA_ERR_INVALID_POSITION_TYPE

2

The method position type is invalid as described in the 'POSITION Types' or 'Create POSITION Types' constants.

XDATA_ERR_INVALID_DELETE_NODE

3

There is no node in that position to delete.

XDATA_ERR_NODE_NOT_FOUND

4

The specified node could not be found.

XDATA_ERR_INVALID_UPDATE_DATA

5

This node type does not have this type of data. The specified node type is invalid for the type of data being used.

XDATA_ERR_NO_CURRENT_POSITION

6

There is no current position to be used for the method.

XDATA_ERR_ROOT_POSITION

7

The method action is not allowed at root position.

XDATA_ERR_BAD_FILTER_FIELD

8

Filter used field identifier that is not one of the following: Comment, Data, JsonType, Label, Name, ParentLabel, PubId, SysId, Type, Text, Target

XDATA_ERR_BAD_FILTER

9

Filter Syntax is incorrect.

XDATA_ERR_NO_CURRENT_FILTER

10

No valid filter has been previously given.

XDATA_ERR_INVALID_POSITION

11

No node exists at that position (i.e., MOVE_FIRST_CHILD when node has no children)

XDATA_ERR_OPEN_FAILED

12

Unable to open a file on loading a JSON or XML file.

XDATA_ERR_PARSER_CREATE

13

Unable to create expat parser.

XDATA_ERR_PARSE

14

Unable to parse XML or JSON file.

XDATA_ERR_FILE_CREATE

15

Unable to create a file when saving JSON or XML.

XDATA_ERR_FILE_TOO_BIG

16

Unable to store JSON or XML string into given variable.

XDATA_ERR_BAD_WRITE

17

Unable to write to a file when saving JSON or XML.

XDATA_ERR_XMLSUBERRSTART

500+nn

All errors between 500 to 600 are XML sub errors where the 'nn' value represents the XML error. The XML sub errors can be found in the 'PL/B Runtime Reference' manual in 'I(I/O) Errors' section in 'XML base handler' table.

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference UpdateNode Method (XDATA)