Class: LibXML::XML::Schema::Element

### Home Classes Methods

### In Files

- lib/libxml/schema/element.rb

### Parent

Object

### Methods

- #annotation
- #array?
- #elements
- #required?

### Class/Module Index

Quicksearch

- LibXML
- LibXML::XML
- LibXML::XML::Attr
- LibXML::XML::AttrDecl
- LibXML::XML::Attributes
- LibXML::XML::Document
- LibXML::XML::Error
- LibXML::XML::HTMLParser
- LibXML::XML::Namespace
- LibXML::XML::Namespaces
- LibXML::XML::Node
- LibXML::XML::Parser
- LibXML::XML::Reader
- LibXML::XML::SaxParser
- LibXML::XML::SaxParser::Callbacks
- LibXML::XML::SaxParser::VerboseCallbacks
- LibXML::XML::Schema
- LibXML::XML::Schema::Attribute
- LibXML::XML::Schema::Element
- LibXML::XML::Schema::Namespaces
- LibXML::XML::Schema::Type
- LibXML::XML::Schema::Types
- LibXML::XML::XPath
- LibXML::XML::XPath::Object
- Object

No matching classes.

# 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.