summaryrefslogtreecommitdiff
path: root/cpp/src/IceXML/StreamI.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-10-03 19:28:19 +0000
committerMark Spruiell <mes@zeroc.com>2002-10-03 19:28:19 +0000
commita3852159e55371fb0aa6bba9558a860390483818 (patch)
treeef8735c15437e793515b5dc82538cc4ee39bf4e9 /cpp/src/IceXML/StreamI.cpp
parentminor fixes (diff)
downloadice-a3852159e55371fb0aa6bba9558a860390483818.tar.bz2
ice-a3852159e55371fb0aa6bba9558a860390483818.tar.xz
ice-a3852159e55371fb0aa6bba9558a860390483818.zip
align output with XML transformer
Diffstat (limited to 'cpp/src/IceXML/StreamI.cpp')
-rw-r--r--cpp/src/IceXML/StreamI.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/cpp/src/IceXML/StreamI.cpp b/cpp/src/IceXML/StreamI.cpp
index f7060c18b98..536ccb3e3df 100644
--- a/cpp/src/IceXML/StreamI.cpp
+++ b/cpp/src/IceXML/StreamI.cpp
@@ -964,7 +964,10 @@ IceXML::StreamI::writeString(const string& name, const string& value)
assert(name.find_first_of(" \t") == string::npos);
_os << se(name);
- _os << startEscapes << value << endEscapes;
+ if(!value.empty())
+ {
+ _os << startEscapes << value << endEscapes;
+ }
_os << ee;
}
@@ -975,7 +978,10 @@ IceXML::StreamI::writeStringSeq(const string& name, const ::Ice::StringSeq& seq)
for(::Ice::StringSeq::const_iterator p = seq.begin(); p != seq.end(); ++p)
{
_os << se("e");
- _os << startEscapes << *p << endEscapes;
+ if(!p->empty())
+ {
+ _os << startEscapes << *p << endEscapes;
+ }
_os << ee;
}
endWriteSequence();
@@ -1039,7 +1045,10 @@ IceXML::StreamI::writeProxy(const string& name, const ::Ice::ObjectPrx& proxy)
string s = _communicator->proxyToString(proxy);
_os << se(name);
- _os << startEscapes << s << endEscapes;
+ if(!s.empty())
+ {
+ _os << startEscapes << s << endEscapes;
+ }
_os << ee;
}