Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Yufei Yufei is offline
external usenet poster
 
Posts: 1
Default How can I preserve the line returns when saving as xml data?

Hi,
I use a custom defined schema to apply some xml tags in the Word Document.
Then I save the file as XML file(data only). However, if there are several
paragraphs in one XML tag, the line returns are not preserved in the result
xml. It became one big blog of text.

How can I preserve the line returns in the result xml file?
Thanks
Yufei
KPMG LLP

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default How can I preserve the line returns when saving as xml data?

Hi ?B?WXVmZWk=?=,

I use a custom defined schema to apply some xml tags in the Word Document.
Then I save the file as XML file(data only). However, if there are several
paragraphs in one XML tag, the line returns are not preserved in the result
xml. It became one big blog of text.

How can I preserve the line returns in the result xml file?

There's nothing built into Word that will allow you to do this. The argument
during the Word 2003 beta was that in "standard" XML white space is not
preserved. Plus, a Word paragraph is not equivalent to new lines or carriage
returns in a pure text file. Therefore, you need to use a TRANSFORM when
saving that specifies you want to retain the whitespace in the result.

If you want to pursue this, I recommend posting to the XSLT newsgroup, or
perhaps to the office.xml newsgroup (although there's little activity there).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detach or change SQL data source for Word template, and other Qs SJMac Mailmerge 6 July 27th 06 10:12 AM
saving file as "text with line breaks". CPetersen New Users 1 February 14th 06 06:34 PM
How to merge data into a table and keep it's contents in line Profjekyll Mailmerge 0 September 15th 05 01:49 PM
Bullets/numbers will not indent after first line Greg Microsoft Word Help 2 August 9th 05 12:43 AM
Saving my AutoCorrect data Charlie Microsoft Word Help 2 January 12th 05 05:51 PM


All times are GMT +1. The time now is 08:51 PM.

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"