rtXmlCppEncFuncs.h File Reference
XML low-level C++ encode functions. More...
#include "rtxmlsrc/osrtxml.h"
Go to the source code of this file.
Functions | |
| int | rtXmlCppEncAnyAttr (OSCTXT *pctxt, OSRTObjListClass *pAnyAttrList) |
| This function encodes a variable of the XSD any attribute type. | |
| int | rtXmlEncAny (OSCTXT *pctxt, OSXMLStringClass *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD any type. | |
| int | rtXmlEncString (OSCTXT *pctxt, OSXMLStringClass *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
| This function encodes a variable of the XSD string type. | |
Detailed Description
XML low-level C++ encode functions.These are overloaded versions of C XML encode functions for use with C++.
Definition in file rtXmlCppEncFuncs.h.
Function Documentation
| int rtXmlCppEncAnyAttr | ( | OSCTXT * | pctxt, | |
| OSRTObjListClass * | pAnyAttrList | |||
| ) |
This function encodes a variable of the XSD any attribute type.
This is expressed as list of name/value pairs.
- Parameters:
-
pctxt Pointer to context block structure. pAnyAttrList List of name/value pair objects.
- Returns:
- Completion status of operation:
- 0 = success,
- negative return value is error.
| int rtXmlEncAny | ( | OSCTXT * | pctxt, | |
| OSXMLStringClass * | pxmlstr, | |||
| const OSUTF8CHAR * | elemName, | |||
| OSXMLNamespace * | pNS | |||
| ) |
This function encodes a variable of the XSD any type.
This is considered to be a fully-wrapped element of any type (for example: <myType>myData</myType>)
- Parameters:
-
pctxt Pointer to context block structure. pxmlstr Value to be encoded. This is a string containing the fully-encoded XML text to be copied to the output stream. elemName XML element name. A name must be provided. If an empty string is passed (""), no element tag is added to the encoded value. nsPrefix XML namespace prefix. If not null, will be prepended to elemName to form a qualified name.
- Returns:
- Completion status of operation:
- 0 = success,
- negative return value is error.
| int rtXmlEncString | ( | OSCTXT * | pctxt, | |
| OSXMLStringClass * | pxmlstr, | |||
| const OSUTF8CHAR * | elemName, | |||
| OSXMLNamespace * | pNS | |||
| ) |
This function encodes a variable of the XSD string type.
- Parameters:
-
pctxt Pointer to context block structure. pxmlstr XML string value to be encoded. elemName XML element name. A name must be provided. If an empty string is passed (""), no element tag is added to the encoded value. nsPrefix XML namespace prefix. If not null, will be prepended to elemName to form a qualified name.
- Returns:
- Completion status of operation:
- 0 = success,
- negative return value is error.
