![]() | InDesign SDK 20.5 |
#include <IXMLStreamUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_IXMLSTREAMUTILS } |
Public Member Functions | |
| virtual IXMLOutStream * | CreateXMLOutFileStream (const IDFile &file, IXMLOutStream::eEncodingType encoding, bool16 stripInvalid=kTrue)=0 |
| virtual IXMLOutStream * | CreateXMLOutPMStream (IPMStream *stream, IXMLOutStream::eEncodingType encoding, bool16 stripInvalid=kTrue)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Aid in the creations of XML output streams.
These methods create the stream and attempt to open it.
The return value is nil if the stream could not open.
For instance:
<pre>
InterfacePtr<XMLOutStream> s(CreateXMLOutFileStream(myFile, IXMLOutStream::kUTF16));
if (s) {
...
use stream and close when done to flush and clean-up s->Close(); } else { ... handle error... }
| pure virtual |
Method to create an XML output stream on a file. You must call Close() on the stream to ensure complete flushing and cleanup when done with the stream
| file | specifies the file target that the content will be streamed to |
| encoding | specifies encoding type for output file |
| stripInvalid | determines if invalid Unicode chars are stripped from the output or converted to processing instructions that contain their hexidecimal equivalent |
| pure virtual |
Method to create an XML output stream on an existing IPMStream, which could be file or memory based. You must call Close() on the stream to ensure complete flushing and cleanup when done with the stream
| stream | existing IPMStream |
| encoding | one of the encoding types in IXMLOutStream |
| stripInvalid | determines if invalid Unicode chars are stripped from the output or converted to processing instructions that contain their hexidecimal equivalent |