RE: [xml] LIBXML2/LIBXSLT/XSLTPROC on VMS



At 3:37 PM +0000 12/17/02, Nigel Hall wrote:

snip

On VMS fwrite p2 is size_of_item and p3 is number_of_items.

snip

So in xmlFileWrite:
   return(fwrite(&buffer[0], 1, len, (FILE *) context));

Becomes:
int items;
   items = fwrite(&buffer[0], len, 1, (FILE *) context);
   return(len);

Sounds reasonable with Daniel's caveat about the error case.  In the
meantime, you might be able to work around the problem by using the
-o switch to specify your output file.  Perhaps you were doing that
already, but it does give you a better chance of getting a
stream-oriented file than redirecting SYS$OUTPUT or using the PIPE
command.
-- 
________________________________________
Craig A. Berry
mailto:craigberry mac com

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]