Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B) (C/S)

(B) (S)

(I/B) (C/S)

(I) (C/S)

 

 

Section for use

All.

 

Syntax

XML_SET_VAL XmlIdentifierName  Value

or

XML_SET_VAL XmlIdentifierName  SeriesValAttribute

 

SeriesValAttribute

Þ

SeriesValAttribute, ValAttribute | ValAttribute

ValAttribute

Þ

AttributeId Value

AttributeId

Þ

<attribute name> | &<alpha variable> | *TEXT | *CDATA

Value

Þ

<cst> | <variable>

 

 

Description

Creates a set of attributes and their values for the current node.

 

You can use the *TEXT directive to create the node's text. This directive can be omitted if only the text must be set.

You can use the *CDATA directive to create text in a CDATA child node: (<![CDATA[text]]).

 

When this instruction is executed, the *RETURN_CODE reserved word can take the following values:

0 (*NORMAL)

Operation completed successfully.

5

Error while creating CDATA node.

6

Error while creating a value for the node.

13

Error: XML identifier not open.

 

Example

XML_SET_VAL xml1 'value of current node text'

 

TIME WDATE

XML_SET_VAL xml1  date WDATE, valnum 123, *TEXT 12

 

TIME WDATE

ALPHA(15) AttrName1

ALPHA(15) AttrName2

AttrName1 = 'date'

AttrName2 = 'valnum'

XML_SET_VAL xml1  &AttrName1 WDATE, &AttrName2 123, *TEXT 12

 

XML_SET_VAL xml1  *CDATA '<html><body>…</body></html>'

Creates the following record in the current node <node>:

<node><![CDATA[<html><body>…</body></html>]]></node>

 

 

 

↑ Top of page

  • Aucune étiquette