Parent

LibXML::XML::Schema::Element

Public Instance Methods

annotation() click to toggle source
# 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
array?() click to toggle source
# File lib/libxml/schema/element.rb, line 9
def array?
  max_occurs > 1
end
elements() click to toggle source
# File lib/libxml/schema/element.rb, line 13
def elements
  type.elements
end
required?() click to toggle source
# File lib/libxml/schema/element.rb, line 5
def required?
  !min_occurs.zero?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.