Trying to preserve whitespace in XML File

S

Steve Novak

I've written an XML Schema with the following code:
<xs:element name="Instructions" minOccurs="0" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve" />
</xs:restriction>
</xs:simpleType>
</xs:element>
I am trying to preserve the linefeed and carriage return characters in my
document but when I go to save them as XML documents (data only) the
characters are gone. Any ideas?
 
B

Bob Buckland ?:-\)

Hi Steve,

You may want to also post this in the Office XML
newsgroup (link below). 'Pretty print' XML isn't
always a default in Office apps.

==========
I've written an XML Schema with the following code:
<xs:element name="Instructions" minOccurs="0" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve" />
</xs:restriction>
</xs:simpleType>
</xs:element>
I am trying to preserve the linefeed and carriage return characters in my
document but when I go to save them as XML documents (data only) the
characters are gone. Any ideas? <<
--
LLet us know if this has helped you,

Bob Buckland ?:)
MS Office System Products MVP
*courtesy is not expensive and can pay big dividends8

A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.office.xml
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.office.xml

B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com
 
S

Steve Novak

Thanks! I think I found out that I wasn't generating the codes so nothing to
save.

I'll try your "other news group" suggestion.

Steve
 

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