XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 28 Apr 2009 08:31 AM
I created a conversion file to create an XML file from a non-delimited flat file, and need to preserve all whitespace outside and inside the value. I already went to Tools Options Editor General and checked "Preserve trailing/leading whitespace", but that does not save any whitespace. Is there a special tag or setting I can use to do this? If need be, I can delimit the file.

Thanks,
Michael

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 13 May 2009 09:04 AM
By default, the elements have several properties set that will reduce
white space. Get rid of anything that trims white space, and then also
set 'normalize spaces' to false for the fields you care about.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 13 May 2009 10:29 AM
Thanks for replying Tony. I see the normalized spaces property has to be changed per field, but it does not affect the spaces before or after a field. Do you know what other properties trim white space? I do not see any others that affect white space.

Thanks,
Michael

>By default, the elements have
>several properties set that
>will reduce
>white space. Get rid of
>anything that trims white
>space, and then also
>set 'normalize spaces' to
>false for the fields you care
>about.

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 14 May 2009 09:06 AM
"Toss characters" within the region might be your problem.
See http://www.stylusstudio.com/docs/v2009R2/d_flatfileconversion58.html
for the definition.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 14 May 2009 11:14 AM
Looks like "Toss Characters" is not the problem. I am using a fixed-width region, so it does not apply.

Thanks,
Michael

Postnext
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 14 May 2009 02:05 PM
Is there any chance you could share a portion of the input file
and the .conv file you've built so far?

You can send a copy to stylus-field-report (at) progress.com, and
we'll take a look for you.

Postnext
Mike LucasSubject: preserving white space in XML conversion
Author: Mike Lucas
Date: 14 May 2009 03:00 PM
I can do that, but I will need to scrub some of the customer data first. I will try to do this first thing tomorrow.

Thanks,
Michael

Posttop
Tony LavinioSubject: preserving white space in XML conversion
Author: Tony Lavinio
Date: 15 May 2009 10:30 AM
Solved off line. :)

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.