User`s guide
12 Classes – Alphabetical List
12-248
mlreportgen.dom.RawText class
Package: mlreportgen.dom
Word XML or HTML markup to insert in document
Description
Word XML or HTML markup to insert in a document.
Construction
text = RawText() creates an empty RawText object.
You can append a RawText object only to a Document object. For a Word document, the
markup specified by the DOCXText property is included in the document. For an HTML
document, the value of the HTMLText property is included. In either case, the markup
must be valid Word XML or HTML markup, respectively, that can be validly inserted
in the body element of the output document. If you insert invalid markup in a Microsoft
Word document, Word may be unable to open the document.
text = RawText(htmlMarkup) creates a RawText object containing the specified
HTML markup.
text = RawText(markup,doctype) creates a RawText object containing markup of
the specified document type (HTML or Word).
Input Arguments
htmlMarkup — HTML markup code
string
HTML markup, specified as a string. To improve the readability of your report document,
consider assigning the markup to a variable. Then use the variable as an input
argument, as shown in the example below.
markup — Word XML or HTML markup code
string