42 #if defined __cplusplus 
   74     long i, textOffset = 0;
 
   77     for( child = root->children; child != NULL; child = child->next ) {
 
   79         if( textOffset < (
int) child->textOffset ) {
 
   80             if( 
addStringToXML( XML, &(text[textOffset]), child->textOffset - textOffset ) ) 
return( 1 );
 
   81             textOffset = child->textOffset;
 
   86         for( i = 0; i < child->attributes.number; i++ ) {
 
   89             if( 
addStringToXML( XML, child->attributes.attributes[i].name, -1 ) != 0 ) 
return( 1 );
 
   92             if( 
addStringToXML( XML, child->attributes.attributes[i].value, -1 ) != 0 ) 
return( 1 );
 
  105     if( textOffset < textLength ) 
if( 
addStringToXML( XML, &(text[textOffset]), textLength - textOffset ) ) 
return( 1 );
 
  113     long lenS, length, inc;
 
  121     length = XML->
length + lenS + 1;
 
  124         if( inc < 10000 ) inc = 10000;
 
  125         if( length < inc ) length = inc;
 
  128         if( XML->
text == NULL ) 
return( 1 );
 
  132         strncpy( p, s, len ); }
 
  152     int i, depth = root->depth;
 
  153     xData_element *child;
 
  155     for( child = root->children; child != NULL; child = child->next ) {
 
  156         for( i = 0; i < depth; i++ ) fprintf( f, 
"  " );
 
  157         fprintf( f, 
"name = %s at line = %ld column = %ld textOffset = %ld; attris:", 
 
  159             child->name, (
long int)child->docInfo.line, (
long int)child->docInfo.column, (
long int)child->textOffset );
 
  160         for( i = 0; i < child->attributes.number; i++ ) {
 
  161             fprintf( f, 
" %s = \"%s\"", child->attributes.attributes[i].name, child->attributes.attributes[i].value );
 
  163         if( outputText && child->text.text != NULL ) fprintf( f, 
"; text: %s", child->text.text );
 
  169 #if defined __cplusplus 
void * realloc(void *__ptr, size_t __size)