Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
XML in "view source" mode adds some characters
nirali
I am generating XML file using iw_ostream.
When I check this generated file in IE, it looks fine. But when I see same XML file in "view source" mode, a box like character ,[] , is added in front of almost all nodes. It did not add for some nodes.
I am trying to put it in here, but when I copy it here, those characters are gone and done come up here. My other friends dont have this issue, when their XML is generated.
What is this box like character ? Why is it added in XML ? Does it mean that when I use this XML in populating any other file, I will have problems ?
How can I get rid of this ?
Find more posts tagged with
Comments
ISCBorisB
...a box like character ,[] , is added in front of almost all nodes...
The symbol is probably "Newline". In Unix/Linux it is LF, in Windows CR+LF. (0x0A and 0x0D0A in hex notation).
You are viewing Unix-generated File using some Windows Editor (notepad?). In Windows, single LF without
preceding CR is not recognized as "Newline" and renders as a little box instead. Long story short,
if generated XMLs are intended for UNIX Web/App Servers, ignore all that - it's just another manifestation
of Win/Unix/Linux formatting differences.
nirali
Thanks.
I am working on server, which is windows (I can see same interface and similar kind of folder structure. There are two TS servers, I can see on screen. One reads server6.5 and other reads server7.2. All the administrative controls have been made invisible. Is there a way to find out what server and what version of server I am working on ? I never worked wit Solaris, so I dont know what kind of interface they have. To use TeamSIte, I have to connect through VPN. After entering network, how to find what are server properties ?)
I am working on windows. File I am generating that comes from TeamSIte, so that too is windows. Is there a way that TPL which generates this XML file can use Unix/Linux ? [php]$pageMode = (iwpt_get_ofile_name() =~ m/.*\/zz_tst_.*preview/) ? "Preview" : "Generate";
my $workarea = iwpt_get_ofile_name('dirname');
$workarea =~ s|(.*\\development_area\\).*|$1|gsi;
$workarea =~ s|(.*\\en_US\\).*|$1|gsi;
if ($pageMode ne "Preview") {
unless (-d "$workarea\\xml") {
`mkdir -m 0775 $workarea\\xml`;
} [/php] This is a beginning section of code. How can this file be generated on Unix ?
Thanks
Rick Poulin
It's not so much the headers of your TPL as much as something printing "\n" instead of "\r\n". As Boris suggested, you should actually ignore this since it doesn't (shouldn't) affect any functionality, but if you care that much about it, you can correct the explicit newlines to Windows format (and annoy anybody using 'NIX in the process). If your TeamSite server is Solaris or Linux, then you won't be able to do a whole lot since implicit newlines in your TPL can't be changed.