Docx.XMLType

A type that indicates to return the contents as XML strings

Docx._flattenMethod

Creates an array of all the XML nodes by pushing into an array as the root node and children are traversed.

Docx.read!Method

Reads the docfile contents as a string

Docx.readMethod
read(docx, XML)

Reads the contents of the document and returns them as a plain string

  • Header text will be clustered
  • Paragraphs will be separated by new lines.
  • Footnotes will be clustered
Docx.readMethod

Read the contents of the document as a string.

  • Header text will be clustered
  • Paragraphs will be separated by new lines.
  • Footnotes will be clustered

NOTE: This will internally mutate docx but multiple calls to this function with the same docx will return the same string.