# READXML

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

This function reads a record and from it, outputs the data retrieved in XML format. The style sheet held in DICT->@READXML is used to transform the data.

If the file to be read is composed of customer information, this can be illustrated as:

READ rec FROM file,id THEN
    CRT rec
END
1
2
3

to output a record for instance:

Clive^Pipenslippers^999 Letsbe Avenue
1

or

READXML xml FROM file,id THEN
    CRT xml
END
1
2
3

to output for instance:

<?xml version="1.0" encoding="UTF-8"?>
<mycustomer>
<firstname>Clive</firstname>
<lastname>Pipenslippers</lastname>
<address>999 Letsbe Avenue</address>
1
2
3
4
5

Go back to jBASE BASIC

Go back to Programmers' Reference Guide