Microsoft KB Archive/833333

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

Article ID: 833333

Article Last Modified on 1/26/2007

-

APPLIES TO


 * Microsoft Office Word 2007
 * Microsoft Office Word 2003

-





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.

Additional query words: xsd schema wd2003 wd2k3 wd2007

Keywords: kbxml kbprb KB833333

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.