XBinder XML Runtime
XBinder Version 3.0.x
|
XML low-level C++ encode functions. More...
Go to the source code of this file.
Functions | |
EXTERNXML int | rtXmlCppEncAnyAttr (OSCTXT *pctxt, OSRTObjListClass *pAnyAttrList) |
This function encodes a variable of the XSD any attribute type. More... | |
EXTERNXML int | rtXmlEncAny (OSCTXT *pctxt, OSRTXMLString *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
This function encodes a variable of the XSD any type. More... | |
EXTERNXML int | rtXmlCppEncAnyTypeValue (OSCTXT *pctxt, OSXSDAnyTypeClass *pvalue) |
This function encodes a variable of the XSD anyType type. More... | |
EXTERNXML int | rtXmlCppEncStartElement (OSCTXT *pctxt, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS, OSRTDListClass *pNSAttrs, OSBOOL terminate) |
This function encodes a start element tag value (<elemName>). More... | |
EXTERNXML int | rtXmlEncString (OSCTXT *pctxt, OSRTXMLString *pxmlstr, const OSUTF8CHAR *elemName, OSXMLNamespace *pNS) |
This function encodes a variable of the XSD string type. More... | |
XML low-level C++ encode functions.
These are overloaded versions of C XML encode functions for use with C++.
Definition in file rtXmlCppEncFuncs.h.
EXTERNXML 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.
pctxt | Pointer to context block structure. |
pAnyAttrList | List of name/value pair objects. |
EXTERNXML int rtXmlCppEncAnyTypeValue | ( | OSCTXT * | pctxt, |
OSXSDAnyTypeClass * | pvalue | ||
) |
This function encodes a variable of the XSD anyType type.
This is considered to be a fully-wrapped element of anyType type (for example: * <myType>myData</myType>)
pctxt | Pointer to context block structure. |
pvalue | Value to be encoded. This is a pointer to a OSXSDAnyTypeClass containing the fully-encoded XML text to be copied to the output stream. |
EXTERNXML int rtXmlCppEncStartElement | ( | OSCTXT * | pctxt, |
const OSUTF8CHAR * | elemName, | ||
OSXMLNamespace * | pNS, | ||
OSRTDListClass * | pNSAttrs, | ||
OSBOOL | terminate | ||
) |
This function encodes a start element tag value (<elemName>).
This function is for use with C++ which uses OSRTDListClass instead of OSRTList (as in the C version of this function).
pctxt | Pointer to context block structure. |
elemName | XML element name. |
pNS | XML namespace information (prefix and URI). If the prefix is NULL, this method will search the context's namespace stack for a prefix to use. |
pNSAttrs | List of namespace attributes to be added to element. |
terminate | Add closing '>' character. |
EXTERNXML int rtXmlEncAny | ( | OSCTXT * | pctxt, |
OSRTXMLString * | 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>)
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. |
pNS | Pointer to namespace structure. |
EXTERNXML int rtXmlEncString | ( | OSCTXT * | pctxt, |
OSRTXMLString * | pxmlstr, | ||
const OSUTF8CHAR * | elemName, | ||
OSXMLNamespace * | pNS | ||
) |
This function encodes a variable of the XSD string type.
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. |
pNS | Pointer to namespace structure. |