Class Nokogiri::XML::ElementContent
In: lib/nokogiri/xml/element_content.rb
Parent: Object

Represents the allowed content in an Element Declaration inside a DTD:

  <?xml version="1.0"?><?TEST-STYLE PIDATA?>
  <!DOCTYPE staff SYSTEM "staff.dtd" [
     <!ELEMENT div1 (head, (p | list | note)*, div2*)>
  ]>
  </root>

ElementContent represents the tree inside the tag shown above that lists the possible content for the div1 tag.

Methods

children  

Constants

PCDATA = 1   Possible definitions of type
ELEMENT = 2
SEQ = 3
OR = 4
ONCE = 1   Possible content occurrences
OPT = 2
MULT = 3
PLUS = 4

Attributes

document  [R] 

Public Instance methods

Get the children of this ElementContent node

[Validate]