Reply
 
Thread Tools Display Modes
  #1   Report Post  
Jorge
 
Posts: n/a
Default Carriage returns and XML

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

Jorge
  #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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:34 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"