summaryrefslogtreecommitdiff
path: root/lib/wsdl/xmlSchema/choice.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wsdl/xmlSchema/choice.rb')
-rw-r--r--lib/wsdl/xmlSchema/choice.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wsdl/xmlSchema/choice.rb b/lib/wsdl/xmlSchema/choice.rb
index 4cf481ec9e..435fd48e49 100644
--- a/lib/wsdl/xmlSchema/choice.rb
+++ b/lib/wsdl/xmlSchema/choice.rb
@@ -20,8 +20,8 @@ class Choice < Info
def initialize
super()
- @minoccurs = 1
- @maxoccurs = 1
+ @minoccurs = '1'
+ @maxoccurs = '1'
@elements = []
end
@@ -51,9 +51,9 @@ class Choice < Info
def parse_attr(attr, value)
case attr
when MaxOccursAttrName
- @maxoccurs = value
+ @maxoccurs = value.source
when MinOccursAttrName
- @minoccurs = value
+ @minoccurs = value.source
else
nil
end