Project

General

Profile

Bug #8701 » test_notationdecl.rb

ohai (Ippei Obayashi), 07/28/2013 11:20 PM

 
require 'rexml/document'

xml = <<EOS
<!DOCTYPE root [
<!NOTATION x SYSTEM "URIx">
<!NOTATION y PUBLIC "PUBIDy">
<!NOTATION z PUBLIC "PUBIDz" "URIz">
]>
<root />
EOS

doctype = REXML::Document.new(xml).doctype
p doctype.notations.map{|notation| notation.name }
(1-1/3)