X11 Work Bench Toolkit  1.0
XML-specific Text Utilities

Specialized text utility functions for parsing XML data. More...

Functions

char * CHParseXMLTagContents (const char *pTagContents, int cbLength)
 Parses contents of an XML tag, returning as WBAlloc'd string list similar to environment strings. More...
 
const char * CHFindEndOfXMLTag (const char *pTagContents)
 Parses contents of an XML tag to find the end of it. More...
 

Detailed Description

Specialized text utility functions for parsing XML data.

Function Documentation

const char* CHFindEndOfXMLTag ( const char *  pTagContents)

Parses contents of an XML tag to find the end of it.

Parameters
pTagContentsA pointer to the string position just past the tag name
Returns
A pointer to the '>' at the end of the XML tag

Generic XML tag parsing. Parse the tag to find its end. The returned pointer will either be the end of the string, or a pointer to the ending '>'.

Header File: conf_help.h

Definition at line 2584 of file conf_help.c.

char* CHParseXMLTagContents ( const char *  pTagContents,
int  cbLength 
)

Parses contents of an XML tag, returning as WBAlloc'd string list similar to environment strings.

Parameters
pTagContentsA pointer to the string position just past the tag name
cbLengthThe length of the tag contents up the trailing '>'. Preceding characters (such as '–>' or '/>') will be ignored, as well as the trailing '>'
Returns
A WBAlloc'd string list, similar in format to 'environ'; i.e. "VALUE=xxxx xxxx xxxx\0" with possible embedded quotes (not doubled or '\'d) ending in a zero byte. The end is marked with an additional '\0'

Generic XML tag parsing. Parse the tag to 'just past the tag name', find the ending '>', and pass that length as 'cbLength'.

Header File: conf_help.h

Definition at line 2348 of file conf_help.c.