The Problem (Q-score 7, ranked #3rd of 32 in the Word VBA archive)
The scenario as originally posted in 2012
I have MS word doc saved as .docx. I want to insert new line in my text by edditing XML file of docx. I have already tried 
, , , 	, amd it always gives me only space not a new line.
what it does:
(XML code)
<w:t>hel
lo</w:t>
When I open .docx file then it is changed to:
Hel lo not as I wanted to be Hel on one line and lo on secound line.
Why community consensus is tight on this one
Across 32 Word VBA entries in the archive, the accepted answer here holds elite answer (top 10 %%) status — meaning voters are unusually aligned on the right fix.
The Verified Solution — elite answer (top 10 %%) (+19)
Verbal answer — walkthrough without a code block
Note: the verified answer is a prose walkthrough. If you need a runnable sample, check Word VBA entries ranked in the top 10 of the same archive.
Use the <w:br/> tag.
I found it by creating a Word document, saving it as XML (via Save As), adding a forced line break with Shift Enter, and checked out the change. The essential difference seems to be just the w:br tag, apparently reflecting the HTML br tag.
When to Use It — vintage (14+ years old, pre-2013)
A top-10 Word VBA pattern — why it still holds up
Ranks #3rd of 32 in the Word VBA archive. The only pattern ranked immediately above it is “Why does the file utility identify Microsoft Word files as CDF? What…” — compare both if you’re choosing between approaches.
What changed between 2012 and 2026
The answer is 14 years old. The Word VBA object model has been stable across Office 2013, 2016, 2019, 2021, 365, and 2024/2026 LTSC, so the pattern still compiles. Changes that might affect you: 64-bit API declarations (use PtrSafe), blocked macros in downloaded files (Mark-of-the-Web), and the shift toward Office Scripts for web-first workflows.