Skip navigation.

ATMI C Function Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


tpfmltoxml(3c)

Name

tpfmltoxml()—Converts FML buffers to XML data

Synopsis

#include <fml.h>
int tpfmltoxml (FBFR *fmlbufp, char *vfile, char *rtag, char **xmlbufp, long flags)

Description

This function is used to convert FML buffers to XML data. It supports the following valid arguments:

fmlbufp

The argument is a pointer to an input FML typed buffer.

vfile

The argument is not used for FML to XML conversion at this time. It is reserved for the fully qualified path name of an XML Schema file used to validate XML output when this capability is supported by Xerces.

rtag

This argument is a pointer to the input root element name for the output XML document.When a root element name is specified during conversion, it is identified and saved for use as an XML root tag with an optional Type attribute added to the root element name. If the input root name is not specified, then the default output XML root tag <FML> is used.

xmlbufp

This argument is a pointer to an output XML typed buffer in a pre-defined format for describing FML fielded buffers.

flag

This argument is not used for FML to XML conversion at this time and should be set to 0.

Return Values

Upon success, tpfmltoxml() returns 0. This function returns -1 on error and sets tperrno to indicate the error condition.

Errors

Upon failure, tpfmltoxml() sets tperrno to one of the following values:

[TPEINVAL]

Either fml32bufp or xmlbufp is not a valid typed buffer.

[TPESYSTEM]

A Tuxedo system error has occurred. The exact nature of the error is written to userlog(3). This will also indicate when a conversion to XML was unable to be done. In that instance error detail info will be added to the userlog.

[TPEOS]

An operating system error has occurred. A numeric value representing the system call that failed is available in Uunixerr.

SEE ALSO

tpxmltofml32(3c),tpfml32toxml(3c), tpxmltofml(3c)

 

Skip navigation bar  Back to Top Previous Next