[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem with Inserted space and Character on Solaris


url space character
Title: Message
Even on this erudite list, there are very few people who can debug code without seeing it.
 
But who knows, you might strike lucky.
 

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s...

-----Original Message-----
From: Jason Brown [mailto:Jason@i...]
Sent: 07 February 2003 11:30
To: XML-DEV (E-mail)
Subject: Problem with Inserted space and Character on Solaris


Hi everyone,

I received this email from a colleague earlier and am unable to answer it.  Knowing, as I do from lurking, the level of skill on this list, I was wondering if anyone on-list would be able to help.

      A client of mine has a MX application which does some XML/DOM manipulation and pushes the resulting XML out as the response (either to the browser on direct request, or to another script via cfhttp).

      Everything is working fine *except* that on Solaris only, the output has a single space character and a carriage return preceding the XML declaration. The *exact* same code, when executed on a Windows 2k server does *not* produce the extraneous white space. On both servers, they have turned on the option to suppress white space, and the script in question also uses RESET="YES" in a cfcontent tag directly preceding the <cfoutput> tag that returns the XML stream. While this sounds really minor, it's not: The XML in question must be processed by a plug-in which chokes if there is *any* white space before the XML declaration (which is fair enough as it isn't valid XML). Has anyone seen anything like this before?

Thank you all in advance

Jason

Jason Brown
Technical Consultant, I2 Limited
Tel: (01223) 728 670
Fax: (01223) 728 601
E-Mail: jason@i...
URL: www.i2group.com

Q: Why do programmers always get Christmas and Halloween mixed up?
A: Because DEC 25 = OCT 31


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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