EPTXmlTextParserWritePlainText Method (Stream, String, Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Writes the content of the document as plain text to a Stream using specified options and the Unicode encoding

Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public void WritePlainText(
	Stream output,
	string[] fieldsToOmit,
	bool stripHtml


Type: System.IOStream
A Stream to write to, this stream must be closed by the caller. This parameter cannot be null.
Type: SystemString
An array of case-sensitive field names to be omitted. This parameter can be null (Nothing in Visual Basic) to indicate that no field should be omitted.
You can use * as a wildchar at the end or the start of a field name to omit a group of fields. e.g. CS_* omits all meta data fields and *ID omits all field names that ends with ID.
Type: SystemBoolean
A value that indicates whether embedded html formatted data should be cleaned as well. If true embedded html markup will be removed, false to preserve the content.

ArgumentNullExceptionoutput cannot be null.

This method removes any Xml markup data in the EPT document and optionally any embedded Html markup as well. Each data field will be separated by a new line. The underlying data is not affected.
See Also