PC Review


Reply
Thread Tools Rate Thread

Carriage returns and XML

 
 
=?Utf-8?B?Sm9yZ2U=?=
Guest
Posts: n/a
 
      30th Jun 2005
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
 
Reply With Quote
 
 
 
 
Cindy M -WordMVP-
Guest
Posts: n/a
 
      30th Jun 2005
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 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Carriage returns tracyt620 Microsoft Excel Misc 1 7th Jul 2005 02:52 PM
carriage returns =?Utf-8?B?SSBhbSBTYW0=?= Microsoft ASP .NET 0 16th Oct 2004 11:09 AM
Carriage Returns =?Utf-8?B?SSBhbSBTYW0=?= Microsoft ASP .NET 1 16th Oct 2004 05:06 AM
carriage returns Nancie Microsoft Excel Misc 5 29th Dec 2003 09:35 PM
carriage returns GeorgeJ Microsoft Access Form Coding 1 5th Oct 2003 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.