You cannot insert a paragraph mark inside an inline XML tag in Word 2007 or in Word 2003

Article translations Article translations
Article ID: 833333 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When you try to insert a paragraph mark inside an inline XML element in a Microsoft Office Word 2007 document or in a Microsoft Office Word 2003 document, Word does not add the paragraph mark inside the XML element. Instead, Word moves the text that follows the paragraph mark outside the XML element.

CAUSE

This is the expected behavior in a Word 2007 document or in a Word 2003 document. Word 2007 and Word 2003 represent XML tags in two ways: inline or block level. An inline tag is inside a paragraph while a block level tag contains paragraphs.

Inline XML tags inside a paragraph can only contain other XML items inside the tag, such as text, fields, and other forms of formatting.

RESOLUTION

To resolve this behavior, you must use an XML block level tag. To do this, follow these steps:
  1. Select the whole paragraph or the whole paragraphs that you want, including the paragraph marks for each paragraph.
  2. In the XML Structure pane, in the Choose an element to apply to your current selection list, click an XML element tag.
Note When you work with XML, it might be helpful to view the tags. To view the XML tags, view the Show XML tags in the document box in the XML Structure pane.

If the tag is not applied correctly, the Elements in the document item in the XML Structure pane will have a question mark next to the element.

If the tag is applied correctly, the Elements in the document item in the XML Structure pane will not have a question mark next to the element.

Because a block level tag contains the paragraph mark and everything inside the paragraph, and the block level tag exists around the paragraph, the tag can contain multiple paragraphs. However, block level tags cannot contain part of one paragraph and part of another paragraph because the result would not be well-formed XML.

Properties

Article ID: 833333 - Last Review: January 26, 2007 - Revision: 3.2
APPLIES TO
  • Microsoft Office Word 2007
  • Microsoft Office Word 2003
Keywords: 
kbxml kbprb KB833333

Give Feedback