From: Stefanie S. <sch...@fm...> - 2002-09-10 21:01:58
|
Dear XMLTK-team, I stumbled upon the two utility functions and am surprised they are so different: To create a TSAX2Bin, one only needs one input: CreateTSAX2Bin(&IID_ITSAXContentHandler, (void**)&pchOut); However, for TSAX2XML, one has to specify a file: CreateTSAX2XML(RCLIID riid, void **ppvObj, FILE *pfOut, int iIndent = 0); Now in my case, I don't want to output the XML into a file directly - I'd like to forward it into a IMemoryStream. But with this interface, I can't do that. I looked at the constructor of CTSAX2XML in the file tsax2xml: CTSAX2XML(FILE *pfOut, int iIndentSize) Here, too, I am forced to specify a file. If I am not mistaken - and please tell me if I am ;-) - then TSAX2XML can only be put at the end of a XMLTK-pipeline, and not used like the other tools. Is there a workaround? I'd be really glad to know. Thanks a lot, Steffi |