XFILE Statements


9.0D

 

XFILE statements will return ‘I’ type errors on failure. Two new error codes have been added. These are I83 with a subcode for XFILE errors and I84 with a subcode for XML schema errors.

 

The I83 subcodes are as follows:

 

Subcode

Meaning

1

No current record

2

The field requested was not in the internal schema

3

RThe requested recordset is not in the current record

4

No current field

5

The requested field is not in the current record

6

Not enough memory to load the XML data

7

The XML data does not match the schema structure

8

The root element of the XML data is invalid

9

The data contained in a field is invalid

10

A READKG or READKGP was performed with no valid filter

11

The filter provided on a READ was invalid

12

Unable to find the root element on a FLUSH operation

13

Only one record allowed under the root element

2nn

XML data read error (where nn is the base XML handler error)

3nn

XML write error (where nn is the base XML handler error)

 

The I84 subcodes are as follows:

 

Subcode

Meaning

1

Out of memory

2

Unknown or unsupported tag found in the schema file

3

Invalid facet for the type

4

Duplicate facet found

5

Invalid white space restriction

6

Unknown facet type

7

Facet has no value

8

Base attribute missing

9

Duplicate type definition

10

Local type has name

11

Duplicate attribute

12

Attribute has no name and no reference

13

Attribute has name and reference

14

Attribute requires name

15

Element contains an invalid occurs value

16

Element has no name and no reference

17

Element has name and reference

18

Element requires name

19

Duplicate element

20

Unknown token

21

First element not xs:schema

22

Unsupported tag

23

Unknown tag

24

Group has no name

25

No name allowed for group

26

Group has duplicate name

27

Group has name and reference

28

Missing forward reference

29

Complex type has no name and no reference

30

Invalid base type

2nn

XML data read error (where nn is the base XML handler error)

3nn

XML write error (where nn is the base XML handler error)

 

The XML base handler subcodes are as follows:

 

Subcode

Meaning

1

A write operation has already been started

2

Unable to create specified XML file

3

Unable to open specified XML file

4

Unable to create XML parser

5

Out of memory

6

Attempt to write an attribute on an closed element

7

Tag name too long

8

Invalid tag name

9

XML data too large

10

XML file too large for memory area

11

File write error

12

Internal state error

13

No element open

14

Internal state error

15

Attribute not open

16

Error detected parsing XML data file.

 

 

See Also: XML Support



PL/B Language Reference XML Transaction Support CLOSE (XFILE)