Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sobjxc_xml.c File Reference


Detailed Description

XML I/O implementation file of the sobjxc tool.

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <assert.h>
#include <sobject/sobject.h>
#include "sobjxc.h"

Include dependency graph for sobjxc_xml.c:

Include dependency graph

Functions

size_t sobjxc_quote_xml_content (const char *, char *)
 Quote a string for use as XML content.
int sobjxc_code_write_xml (const char *, const char *, FILE *, const char *)
 Write the contents of a code block as XML.

Function Documentation

int sobjxc_code_write_xml const char *  lang,
const char *  code,
FILE *  fp,
const char *  filename
[static]
 

Write the contents of a code block as XML.

Parameters:
lang The language identifier.
code The contents of the code block.
fp The output file stream.
filename The output file name.
Return values:
0 Success.
-1 An error occurred and has been logged through sobjxc_error().

size_t sobjxc_quote_xml_content const char *  data,
char *  buffer
[static]
 

Quote a string for use as XML content.

Parameters:
data The data to be quoted.
buffer The buffer receiving the quoted data, incuding a terminating null-character. This argument may be a null-pointer.
Returns:
The number of characters in the quoted data, not counting the terminating null-character.


Generated on Sat Jul 23 16:06:07 2005 for sobject by  doxygen 1.3.9.1