DOCX Main-Document Counts
Count selected main-document XML text, words, paragraph/table tags, and comment tags.
About this docx main-document counts
Count selected main-document XML text, words, paragraph/table tags, and comment tags Parses and structures office document payloads locally in memory without transmitting private company files to external servers.
Document parsing & data extraction pipeline
Read word/document.xml, join all w:t text including text in table cells with spaces, and count characters, whitespace-separated words, w:p paragraphs, w:tbl tables, and comment tags in word/comments.xml.
Worked document extraction example
Scenario: Count the limited XML fields exposed from a local DOCX fixture.
Sample input:
Processing: Join w:t runs in the main document with spaces; count main-document paragraph/table tags and comment tags in word/comments.xml. Footnotes and endnotes are not included.
Illustrative output:
File size & structure constraints
Text in table cells is included in character and word totals, but cells themselves are not separately counted. Footnotes, endnotes, figures, headers, and full document layout are not counted; word counts are a simple whitespace split.
DOCX Main-Document Counts parses structured OpenXML and PDF data locally. Review exported tables or sheets against original files.
Zero-upload document security boundary
File buffers and document assets in DOCX Main-Document Counts are processed in-memory via local browser APIs with zero file uploads to CZOA servers.
Document schemas & interchange standards
ECMA-376 Office Open XML specifications and ISO 32000 PDF reference standards:
DOCX Main-Document Counts verification · Audit standards
How to use it
- Select one DOCX package.
- Read main-document w:t text and count characters, whitespace-delimited words, paragraph and table tags; count comment tags in word/comments.xml.
- Display these counts as JSON.
Frequently asked questions
What does DOCX Main-Document Counts read?+
It reads `word/document.xml`, joins `w:t` text with spaces, and counts characters, whitespace-separated words, `w:p` paragraphs, `w:tbl` tables, and comment tags in `word/comments.xml`.
Which file and controls are available?+
Choose one local DOCX file and use Process locally. The result is JSON with characters, words, paragraphs, tables, and comments; it does not open an editable document view.
What does the count exclude?+
Deleted `w:delText` is excluded. Text in table cells is included in the character and word counts because the tool reads all `w:t` in `word/document.xml`; it does not report a separate cell count. Footnote and endnote XML, figures, layout, reading time, styles, and document properties are not read.
What happens with an unreadable DOCX?+
The selected file must be a readable DOCX ZIP. A malformed or unsupported package can fail during local processing; the tool does not repair the document.
