READXML

READXML rec FROM file, id ELSE STOP 202,id

Reads a record from a file using the style sheet held in DICT->@READXML to transform the data into xml format

EXAMPLE

       READ rec FROM file,id THEN
          CRT rec
       END
       READXML xml FROM file,id THEN
          CRT xml
       END

Screen output:

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

Last update: Sat, 16 Jul 2022 15:34