Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

READXML

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

to output a record for instance: 

CLIVE^PIPENSLIPPERS^999 LETSBE AVENUE

or 

READXML xml FROM file,id THEN
    CRT xml
END

to output for instance: 

<?xml version="1.0" encoding="UTF-8"?>
<mycustomer>
<firstname>CLIVE</firstname>
<lastname>PIPENSLIPPERS</lastname>
<address>999 LETSBE AVENUE</address>


Go back to jBASE BASIC.

Was this article helpful?