Carriage returns and XML

G

Guest

Hi everyone

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.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?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:p is outside that, and might also include a w:pPr (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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top