# File lib/libxml/schema/element.rb, line 17 def annotation return if node.nil? annotations = node.children.select { |n| n.name == 'annotation' } annotations.map do |annotation| annotation.children.map(&:content).join("\n") end.join("\n") end
# File lib/libxml/schema/element.rb, line 9 def array? max_occurs > 1 end
# File lib/libxml/schema/element.rb, line 13 def elements type.elements end
# File lib/libxml/schema/element.rb, line 5 def required? !min_occurs.zero? end