View Single Post
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?Sm9yZ2U=?=,

I have a problem when I apply an XML Schema that I created myself to a Word
document. I cannot apply an element of type "xs:string" to two paragraphs. I
can just apply it to the first one. I don't know, but it seems that the
problem is the carriage returns. I'm sure I'm doing something wrong.

Do you have mixed Content enabled for the element? If you save a (very simple)
Word document to its native XML you'll notice that the "paragraph marks" are
really not simply Chr$(13) characters. They're actually very complex, and
represented in the native XML as at least two, often even more tags. The text
itself is in a w:t element. Preceding that could be a w:rPr (run properties),
and the w is outside that, and might also include a wPr (paragraph
properites).

So, your element needs to support mixed Content (text plus other tags) in order
to "hold" multiple paragraphs in a Word document.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)