/macosx-10.10/ruby-106/ruby/test/rexml/ |
H A D | test_functions_number.rb | 8 telem = REXML::Element.new("elem") 10 assert_equal(9, REXML::Functions::number(telem)) 13 telem = REXML::Element.new("elem") 15 assert_equal(10.4, REXML::Functions::number(telem)) 18 telem = REXML::Element.new("elem") 20 assert_equal(-9, REXML::Functions::number(telem)) 23 telem = REXML::Element.new("elem") 25 assert_equal(-9.13, REXML::Functions::number(telem)) 28 # telem = REXML::Element.new("elem") 30 # assert_equal(9.13E12, REXML [all...] |
H A D | test_xpathtext.rb | 8 @doc = REXML::Document.new 15 node1 = REXML::Element.new('a', @doc) 16 node2 = REXML::Element.new('b', node1) 17 REXML::Text.new('test', false, node2) 26 node1 = REXML::Element.new('a', @doc) 27 node2 = REXML::Element.new('b', node1) 28 textnode = REXML::Text.new('test', false, node2) 33 nodes = REXML::XPath.match(@doc, '//text()') 35 assert_equal(REXML::Text, nodes[0].class) 39 node1 = REXML [all...] |
H A D | test_xml_declaration.rb | 17 @doc = REXML::Document.new xml 23 assert_kind_of(REXML::XMLDecl, @xml_declaration) 27 assert_kind_of(REXML::Document, @xml_declaration.parent) 31 assert_kind_of(REXML::XMLDecl, @root.previous_sibling.previous_sibling) 32 assert_kind_of(REXML::Element, @xml_declaration.next_sibling.next_sibling)
|
H A D | test_ticket_80.rb | 3 # desc: test's REXML's XML/XPath implementation 34 REXML::XPath.each( REXML::Document.new(@@xmlstr), 45 REXML::XPath.each( REXML::Document.new(@@xmlstr),
|
H A D | test_entity.rb | 10 simple =~ /#{REXML::Entity::GEDECL}/ 14 REXML::Entity::ENTITYDECL =~ simple 15 assert REXML::Entity::matches?(simple) 16 match = REXML::Entity::ENTITYDECL.match(simple) 22 assert REXML::Entity::matches?(simple) 23 match = REXML::Entity::ENTITYDECL.match(simple) 31 assert REXML::Entity::matches?(simple) 32 match = REXML::Entity::ENTITYDECL.match(simple) 47 assert REXML::Entity::matches?(zero) 48 assert REXML [all...] |
H A D | test_lightparser.rb | 6 include REXML 9 parser = REXML::Parsers::LightParser.new( f )
|
H A D | test_order.rb | 24 @doc = REXML::Document.new(TESTDOC) 25 @items = REXML::XPath.match(@doc,'//x') 37 d = REXML::Document.new( "<a><x id='1'/><x id='2'/><x id='3'/> 39 items = REXML::XPath.match( d, '//x' ) 41 d = REXML::Document.new( "<a> 44 items = REXML::XPath.match( d, '//y' ) 49 doc = REXML::Document.new(Zlib::GzipReader.open(fixture_path('LostineRiver.kml.gz'), encoding: 'utf-8')) 99 REXML::XPath.each( doc, "//Placemark") { |element|
|
H A D | test_xpath_pred.rb | 7 include REXML 25 @doc = REXML::Document.new( SRC ) 26 @parser = REXML::Parsers::XPathParser.new 53 m = REXML::XPath.match( @doc, path ) 70 doc = REXML::Document.new(source) 74 m = REXML::XPath.match(doc, "/descendant-or-self::node()[#{predicate}]") 75 assert_equal( [REXML::Text.new("TEXT1"), 76 REXML::Text.new("TEXT2"), 77 REXML::Comment.new("COMMENT")],
|
H A D | test_comment.rb | 17 document = REXML::Document.new(xml) 19 child.is_a?(REXML::Comment)
|
H A D | test_document.rb | 6 class REXML::TestDocument < Test::Unit::TestCase class 8 doc = REXML::Document.new(<<-eoxml) 27 doc = REXML::Document.new(<<EOF) 64 doc = REXML::Document.new(XML_WITH_NESTED_ENTITY) 68 REXML::Document.entity_expansion_limit = 100 69 assert_equal(100, REXML::Document.entity_expansion_limit) 70 doc = REXML::Document.new(XML_WITH_NESTED_ENTITY) 76 REXML::Document.entity_expansion_limit = 4 77 doc = REXML::Document.new(XML_WITH_4_ENTITY_EXPANSION) 79 REXML [all...] |
H A D | test_encoding_2.rb | 31 REXML::Document.new(data).root 32 rescue REXML::ParseException => e 34 fail "Encoding #{enc} does not work with REXML: #{e.message}" 37 fail "Encoding #{enc} does not work with REXML: #{e.message}" 40 fail "Encoding #{enc} does not work with REXML: #{e.message}" 43 fail "Encoding #{enc} does not work with REXML: #{$!.message}" 48 fail "There were #{broken_encodings} encoding failures out of #{UnixCharsets.size} plus some REXML internal encodings" 53 puts "Full list of registered encodings in REXML:" 54 puts REXML::Encoding::ENCODING_CLAIMS.values.join(', ')
|
H A D | test_xpath_attribute_query.rb | 65 REXML::Document.new(xmlString).elements.each("feed/entry") do |element| 75 doc = REXML::Document.new(@@xmlstr1) 82 REXML::XPath.each(doc, "//link[@rel='alternate']") do |element|
|
H A D | test_rexml_issuezilla.rb | 7 doc = REXML::Document.new(File.new(fixture_path("ofbiz-issues-full-177.xml")))
|
H A D | test_encoding.rb | 10 include REXML 32 REXML::Formatters::Default.new.write( doc.root, out="" ) 43 REXML::Formatters::Default.new.write( doc.root, Output.new( out="", "UTF-8" ) ) 86 REXML::Document.new doc 90 utf16 = REXML::Document.new(File.new(fixture_path("ticket_110_utf16.xml"))) 92 assert( utf16[0].kind_of?(REXML::XMLDecl))
|
H A D | test_listener.rb | 37 t4 = %Q{<string> REXML </string>} 38 assert_equal( " REXML ", @listener.parse( t4 ), 89 doc = REXML::Document.new( source ) 95 doc = REXML::Document.parse_stream( 103 include REXML::StreamListener 111 REXML::Document.parse_stream( stringOrReadable, self ) 127 assert_equal( t6.strip, REXML::Document.new(t6).to_s )
|
H A D | test_stream.rb | 7 include REXML::StreamListener 27 REXML::Document.parse_stream(source, MyListener.new) 59 REXML::Document.parse_stream( source, listener ) 76 REXML::Document.parse_stream(io, self) 82 @stack.push(REXML::Element.new(name, @stack.last)) 84 @doc = REXML::Document.new("<#{name}/>")
|
H A D | test_functions.rb | 6 include REXML 103 testString = REXML::Functions::substring_after("helloworld","hello") 134 d = REXML::Document.new("<a xmlns:x='foo'><b/><x:b/></a>") 140 d = REXML::Document.new("<a xmlns:x='foo'><b/><x:b/></a>") 153 doc = REXML::Document.new(source) 167 assert_equal(value[i], REXML::XPath.match(doc, xpath)) 175 assert_equal(value[i], REXML::XPath.match(doc, xpath)) 211 document = REXML::Document.new("<a><b>A</b><b>1</b></a>") 212 assert_equal( "A", REXML::XPath.first(document, '//b[.="A"]').text ) 213 assert_equal( "1", REXML [all...] |
/macosx-10.10/ruby-106/ruby/lib/rexml/ |
H A D | undefinednamespaceexception.rb | 2 module REXML module
|
H A D | xmltokens.rb | 1 module REXML module
|
H A D | rexml.rb | 2 # REXML is an XML toolkit for Ruby[http://www.ruby-lang.org], in Ruby. 4 # REXML is a _pure_ Ruby, XML 1.0 conforming, 6 # toolkit with an intuitive API. REXML passes 100% of the non-validating Oasis 8 # and provides tree, stream, SAX2, pull, and lightweight APIs. REXML also 10 # Ruby 1.8, REXML is included in the standard Ruby distribution. 17 # This API documentation can be downloaded from the REXML home page, or can 20 # A tutorial is available in the REXML distribution in docs/tutorial.html, 23 module REXML module
|
/macosx-10.10/ruby-106/ruby/lib/rexml/dtd/ |
H A D | attlistdecl.rb | 2 module REXML module
|
H A D | elementdecl.rb | 2 module REXML module
|
/macosx-10.10/ruby-106/ruby/lib/rexml/validation/ |
H A D | validationexception.rb | 1 module REXML module
|
/macosx-10.10/ruby-106/ruby/lib/rss/ |
H A D | rexmlparser.rb | 4 /\A(\d+)\.(\d+)(?:\.\d+)+\z/ =~ REXML::Version 6 raise LoadError, "needs REXML 2.5 or later (#{REXML::Version})" 22 REXML::Document.parse_stream(@rss, @listener) 25 rescue REXML::ParseException => e 36 include REXML::StreamListener 47 # Encoding is converted to UTF-8 when REXML parse XML.
|
/macosx-10.10/ruby-106/ruby/lib/rexml/parsers/ |
H A D | lightparser.rb | 5 module REXML module 10 @parser = REXML::Parsers::BaseParser.new( stream )
|