From 92ea3b8a6eeb51b44ca2bbf62618d7501a2ffa54 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Tue, 22 Jan 2002 14:14:31 +0000 Subject: added nillable --- cpp/src/slice2xsd/Gen.cpp | 8 +++++++- cpp/src/slice2xsd/ice.xsd | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/slice2xsd/Gen.cpp b/cpp/src/slice2xsd/Gen.cpp index 544755be7fa..3d4e1277929 100644 --- a/cpp/src/slice2xsd/Gen.cpp +++ b/cpp/src/slice2xsd/Gen.cpp @@ -192,7 +192,7 @@ Slice::Gen::visitClassDefStart(const ClassDefPtr& p) end(); // xs:complexType O << sp << nl << "name() - << "\" type=\"tns:" << internalId << scopeId << p->name() << "Type\"/>"; + << "\" type=\"tns:" << internalId << scopeId << p->name() << "Type\" nillable=\"true\"/>"; return true; } @@ -397,6 +397,9 @@ Slice::Gen::visitSequence(const SequencePtr& p) << "\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>"; end(); // xs:sequence + + O << nl << ""; + end(); // xs:complexType O << sp; @@ -456,6 +459,9 @@ Slice::Gen::visitDictionary(const DictionaryPtr& p) << " minOccurs=\"0\" maxOccurs=\"unbounded\"/>"; end(); // xs:sequence + + O << nl << ""; + end(); // xs:complexType O << sp; diff --git a/cpp/src/slice2xsd/ice.xsd b/cpp/src/slice2xsd/ice.xsd index 06dd041f40c..1ab107f5e7e 100644 --- a/cpp/src/slice2xsd/ice.xsd +++ b/cpp/src/slice2xsd/ice.xsd @@ -37,7 +37,7 @@ All Rights Reserved - + @@ -55,6 +55,7 @@ All Rights Reserved + -- cgit v1.2.3