libxml-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +42 -0
- data/README +123 -117
- data/doc/classes/XML.html +226 -0
- data/doc/classes/XML/Attr.html +969 -0
- data/doc/classes/XML/Attributes.html +487 -0
- data/doc/classes/XML/Document.html +1423 -0
- data/doc/classes/XML/Dtd.html +159 -0
- data/doc/classes/XML/Error.html +111 -0
- data/doc/classes/XML/HTMLParser.html +330 -0
- data/doc/classes/XML/InputCallbacks.html +154 -0
- data/doc/classes/XML/NS.html +366 -0
- data/doc/classes/XML/Node.html +3292 -0
- data/doc/classes/XML/Node/FailedModify.html +111 -0
- data/doc/classes/XML/Node/Set.html +435 -0
- data/doc/classes/XML/Node/SetNamespace.html +111 -0
- data/doc/classes/XML/Node/UnknownType.html +111 -0
- data/doc/classes/XML/Parser.html +2178 -0
- data/doc/classes/XML/Parser/Context.html +1233 -0
- data/doc/classes/XML/Parser/ParseError.html +111 -0
- data/doc/classes/XML/Reader.html +2173 -0
- data/doc/classes/XML/SaxParser.html +396 -0
- data/doc/classes/XML/SiblingEnum.html +142 -0
- data/doc/classes/XML/State.html +118 -0
- data/doc/classes/XML/Tree.html +224 -0
- data/doc/classes/XML/XInclude.html +117 -0
- data/doc/classes/XML/XInclude/Error.html +111 -0
- data/doc/classes/XML/XMLParserOptions.html +198 -0
- data/doc/classes/XML/XPath.html +269 -0
- data/doc/classes/XML/XPath/Context.html +193 -0
- data/doc/classes/XML/XPath/InvalidPath.html +111 -0
- data/doc/classes/XML/XPath/Object.html +439 -0
- data/doc/classes/XML/XPointer.html +164 -0
- data/doc/classes/XML/XPointer/Context.html +117 -0
- data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
- data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
- data/doc/classes/singleton.html +114 -0
- data/doc/created.rid +1 -0
- data/doc/files/CHANGES.html +375 -0
- data/doc/files/LICENSE.html +133 -0
- data/doc/files/README.html +279 -0
- data/doc/files/VERSION.html +107 -0
- data/doc/files/ext/libxml/cbg_c.html +101 -0
- data/doc/files/ext/libxml/libxml_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
- data/doc/files/lib/libxml_rb.html +115 -0
- data/doc/files/lib/xml/libxml_rb.html +114 -0
- data/doc/fr_class_index.html +60 -0
- data/doc/fr_file_index.html +56 -0
- data/doc/fr_method_index.html +373 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/ext/libxml/cbg.c +76 -76
- data/ext/libxml/extconf.rb +308 -308
- data/ext/libxml/libxml.c +58 -62
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_attr.c +201 -113
- data/ext/libxml/ruby_xml_attr.h +6 -9
- data/ext/libxml/ruby_xml_attributes.c +268 -0
- data/ext/libxml/ruby_xml_attributes.h +17 -0
- data/ext/libxml/ruby_xml_document.c +80 -66
- data/ext/libxml/ruby_xml_dtd.c +2 -2
- data/ext/libxml/ruby_xml_dtd.h +17 -17
- data/ext/libxml/ruby_xml_html_parser.c +18 -19
- data/ext/libxml/ruby_xml_html_parser.h +29 -29
- data/ext/libxml/ruby_xml_input_cbg.c +6 -0
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_node.c +438 -536
- data/ext/libxml/ruby_xml_node.h +17 -27
- data/ext/libxml/ruby_xml_node_set.c +10 -9
- data/ext/libxml/ruby_xml_node_set.h +20 -20
- data/ext/libxml/ruby_xml_ns.c +60 -69
- data/ext/libxml/ruby_xml_ns.h +12 -21
- data/ext/libxml/ruby_xml_parser.c +54 -53
- data/ext/libxml/ruby_xml_parser.h +31 -31
- data/ext/libxml/ruby_xml_parser_context.c +37 -91
- data/ext/libxml/ruby_xml_parser_context.h +20 -22
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_sax_parser.c +55 -55
- data/ext/libxml/ruby_xml_sax_parser.h +56 -56
- data/ext/libxml/ruby_xml_schema.c +44 -51
- data/ext/libxml/ruby_xml_schema.h +16 -16
- data/ext/libxml/ruby_xml_state.c +35 -96
- data/ext/libxml/ruby_xml_state.h +2 -3
- data/ext/libxml/ruby_xml_tree.h +12 -12
- data/ext/libxml/ruby_xml_xinclude.h +13 -13
- data/ext/libxml/ruby_xml_xpath.c +57 -18
- data/ext/libxml/ruby_xml_xpath.h +23 -23
- data/ext/libxml/ruby_xml_xpath_context.c +11 -7
- data/ext/libxml/ruby_xml_xpath_context.h +20 -20
- data/ext/libxml/ruby_xml_xpath_object.c +9 -16
- data/ext/libxml/ruby_xml_xpath_object.h +4 -10
- data/ext/libxml/ruby_xml_xpointer.c +11 -11
- data/ext/libxml/ruby_xml_xpointer.h +27 -27
- data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
- data/ext/libxml/version.h +2 -2
- data/lib/libxml.rb +134 -125
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libiconv-2.dll +0 -0
- data/mingw/libxml2-2.dll +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/ets_copy_bug.rb +1 -1
- data/test/ets_copy_bug2.rb +16 -27
- data/test/ets_doc_to_s.rb +1 -1
- data/test/ets_gpx.rb +1 -1
- data/test/ets_node_gc.rb +1 -1
- data/test/ets_tsr.rb +1 -1
- data/test/tc_well_formed.rb +1 -1
- data/test/tc_xml_attributes.rb +106 -0
- data/test/tc_xml_document.rb +10 -10
- data/test/tc_xml_document_write3.rb +1 -1
- data/test/tc_xml_dtd.rb +49 -0
- data/test/tc_xml_html_parser.rb +3 -3
- data/test/tc_xml_node.rb +69 -33
- data/test/tc_xml_node_attr.rb +170 -0
- data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
- data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
- data/test/tc_xml_node_edit.rb +91 -0
- data/test/tc_xml_parser.rb +97 -50
- data/test/tc_xml_parser_context.rb +61 -23
- data/test/tc_xml_schema.rb +39 -0
- data/test/tc_xml_xinclude.rb +5 -6
- data/test/tc_xml_xpath.rb +51 -27
- data/test/test_suite.rb +27 -0
- data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
- data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
- metadata +106 -54
- data/mingw/mingw.rake +0 -36
- data/test/dtd-test.rb +0 -24
- data/test/merge_bug.rb +0 -55
- data/test/schema-test.rb +0 -74
- data/test/tc_xml_node2.rb +0 -25
- data/test/tc_xml_node3.rb +0 -27
- data/test/tc_xml_node4.rb +0 -86
- data/test/tc_xml_node5.rb +0 -52
- data/test/tc_xml_node6.rb +0 -27
- data/test/tc_xml_node7.rb +0 -35
- data/test/tc_xml_parser2.rb +0 -16
- data/test/tc_xml_parser3.rb +0 -23
- data/test/tc_xml_parser4.rb +0 -33
- data/test/tc_xml_parser5.rb +0 -27
- data/test/tc_xml_parser6.rb +0 -23
- data/test/tc_xml_parser7.rb +0 -28
- data/test/tc_xml_parser8.rb +0 -32
- data/test/tc_xml_parser9.rb +0 -11
- data/test/tc_xml_xpath2.rb +0 -14
- data/work/vc/debug/libxml.exp +0 -0
- data/work/vc/debug/libxml.ilk +0 -0
- data/work/vc/debug/libxml.lib +0 -0
- data/work/vc/debug/libxml.pdb +0 -0
- data/work/vc/debug/libxml.so +0 -0
data/test/tc_xml_parser2.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require "libxml"
|
2
|
-
require 'test/unit'
|
3
|
-
|
4
|
-
class TC_XML_Parser2 < Test::Unit::TestCase
|
5
|
-
def setup()
|
6
|
-
@xp = XML::Parser.new()
|
7
|
-
end
|
8
|
-
|
9
|
-
def teardown()
|
10
|
-
@xp = nil
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_ruby_xml_parser_new()
|
14
|
-
assert_instance_of(XML::Parser, @xp)
|
15
|
-
end
|
16
|
-
end # TC_XML_Document
|
data/test/tc_xml_parser3.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser3.rb 251 2008-01-22 18:12:00Z transami $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser3 < Test::Unit::TestCase
|
6
|
-
def setup()
|
7
|
-
@xp = XML::Parser.new()
|
8
|
-
assert_instance_of(XML::Parser, @xp)
|
9
|
-
s = @xp.string = '<u>a</u>'
|
10
|
-
assert_instance_of(String, s)
|
11
|
-
assert_instance_of(String, @xp.string)
|
12
|
-
assert_equal(s, @xp.string)
|
13
|
-
end
|
14
|
-
|
15
|
-
def teardown()
|
16
|
-
@xp = nil
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_ruby_xml_parser_new()
|
20
|
-
assert_instance_of(XML::Parser, @xp)
|
21
|
-
assert_instance_of(String, @xp.string)
|
22
|
-
end
|
23
|
-
end
|
data/test/tc_xml_parser4.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser4.rb 251 2008-01-22 18:12:00Z transami $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser4 < Test::Unit::TestCase
|
6
|
-
def setup()
|
7
|
-
@xp1 = XML::Parser.new()
|
8
|
-
assert_instance_of(XML::Parser, @xp1)
|
9
|
-
s1 = @xp1.string = '<u>a</u>'
|
10
|
-
assert_instance_of(String, s1)
|
11
|
-
assert_instance_of(String, @xp1.string)
|
12
|
-
assert_equal(s1, @xp1.string)
|
13
|
-
|
14
|
-
@xp2 = XML::Parser.string('<u>a</u>')
|
15
|
-
assert_instance_of(XML::Parser, @xp2)
|
16
|
-
assert_instance_of(String, @xp2.string)
|
17
|
-
assert_equal(s1, @xp2.string)
|
18
|
-
assert_equal(@xp1.string, @xp2.string)
|
19
|
-
end
|
20
|
-
|
21
|
-
def teardown()
|
22
|
-
@xp1 = nil
|
23
|
-
@xp2 = nil
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_ruby_xml_parser_new()
|
27
|
-
assert_instance_of(XML::Parser, @xp1)
|
28
|
-
assert_instance_of(String, @xp1.string)
|
29
|
-
assert_instance_of(XML::Parser, @xp2)
|
30
|
-
assert_instance_of(String, @xp2.string)
|
31
|
-
assert_equal(@xp1.string, @xp2.string)
|
32
|
-
end
|
33
|
-
end # TC_XML_Document
|
data/test/tc_xml_parser5.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser5.rb 251 2008-01-22 18:12:00Z transami $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser5 < Test::Unit::TestCase
|
6
|
-
def setup()
|
7
|
-
@xp = XML::Parser.new()
|
8
|
-
assert_instance_of(XML::Parser, @xp)
|
9
|
-
s = @xp.string = '<u>a</u>'
|
10
|
-
assert_instance_of(String, s)
|
11
|
-
assert_instance_of(String, @xp.string)
|
12
|
-
assert_equal(s, @xp.string)
|
13
|
-
@doc = @xp.parse
|
14
|
-
assert_instance_of(XML::Document, @doc)
|
15
|
-
end
|
16
|
-
|
17
|
-
def teardown()
|
18
|
-
@xp = nil
|
19
|
-
@doc = nil
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_ruby_xml_parser_new()
|
23
|
-
assert_instance_of(XML::Parser, @xp)
|
24
|
-
assert_instance_of(String, @xp.string)
|
25
|
-
assert_instance_of(XML::Document, @doc)
|
26
|
-
end
|
27
|
-
end
|
data/test/tc_xml_parser6.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser6.rb 283 2008-07-01 06:48:35Z cfis $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser6 < Test::Unit::TestCase
|
6
|
-
def setup()
|
7
|
-
@xp = XML::Parser.new()
|
8
|
-
assert_instance_of(XML::Parser, @xp)
|
9
|
-
f = File.open('model/rubynet.xml')
|
10
|
-
f1 = @xp.io = f
|
11
|
-
assert_instance_of(File, f1)
|
12
|
-
assert_instance_of(File, @xp.io)
|
13
|
-
end
|
14
|
-
|
15
|
-
def teardown()
|
16
|
-
@xp = nil
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_ruby_xml_parser_new()
|
20
|
-
assert_instance_of(XML::Parser, @xp)
|
21
|
-
assert_instance_of(File, @xp.io)
|
22
|
-
end
|
23
|
-
end
|
data/test/tc_xml_parser7.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser7.rb 283 2008-07-01 06:48:35Z cfis $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser7 < Test::Unit::TestCase
|
6
|
-
def setup()
|
7
|
-
@xp = XML::Parser.new()
|
8
|
-
assert_instance_of(XML::Parser, @xp)
|
9
|
-
f = File.open('model/rubynet.xml')
|
10
|
-
f1 = @xp.io = f
|
11
|
-
assert_instance_of(File, f1)
|
12
|
-
assert_instance_of(File, @xp.io)
|
13
|
-
@doc = @xp.parse
|
14
|
-
assert_instance_of(XML::Document, @doc)
|
15
|
-
end
|
16
|
-
|
17
|
-
def teardown()
|
18
|
-
@xp = nil
|
19
|
-
@doc = nil
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_ruby_xml_parser_new()
|
23
|
-
assert_instance_of(XML::Parser, @xp)
|
24
|
-
assert_instance_of(File, @xp.io)
|
25
|
-
assert_instance_of(XML::Document, @doc)
|
26
|
-
assert_instance_of(String, @doc.version)
|
27
|
-
end
|
28
|
-
end
|
data/test/tc_xml_parser8.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# $Id: tc_xml_parser8.rb 251 2008-01-22 18:12:00Z transami $
|
2
|
-
require "libxml"
|
3
|
-
require 'test/unit'
|
4
|
-
|
5
|
-
class TC_XML_Parser8 < Test::Unit::TestCase
|
6
|
-
def test_ruby_xml_parser_error_handler
|
7
|
-
$stderr.puts "\nEXPECTING: TWO ERRORS:"
|
8
|
-
# this will send message to stderr
|
9
|
-
assert_raise(XML::Parser::ParseError) {
|
10
|
-
d = XML::Parser.string('<foo><bar/></foz>').parse
|
11
|
-
}
|
12
|
-
|
13
|
-
ary = []
|
14
|
-
assert_nil XML::Parser.register_error_handler(lambda { |msg| ary << msg })
|
15
|
-
|
16
|
-
# this will use our error handler
|
17
|
-
assert_raise(XML::Parser::ParseError) {
|
18
|
-
d = XML::Parser.string('<foo><bar/></foz>').parse
|
19
|
-
}
|
20
|
-
|
21
|
-
assert (first_len = ary.length) > 0
|
22
|
-
|
23
|
-
assert_instance_of Proc, XML::Parser.register_error_handler(nil)
|
24
|
-
|
25
|
-
# this will go to stderr again
|
26
|
-
assert_raise(XML::Parser::ParseError) {
|
27
|
-
d = XML::Parser.string('<foo><bar/></foz>').parse
|
28
|
-
}
|
29
|
-
|
30
|
-
assert_equal first_len, ary.length
|
31
|
-
end
|
32
|
-
end
|
data/test/tc_xml_parser9.rb
DELETED
data/test/tc_xml_xpath2.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require "libxml"
|
2
|
-
require "test/unit"
|
3
|
-
require "tempfile"
|
4
|
-
|
5
|
-
class TC_XML_XPath2 < Test::Unit::TestCase
|
6
|
-
def test_custom_xpath_function
|
7
|
-
xml = Tempfile.new("xxx")
|
8
|
-
xml.puts("<a/>")
|
9
|
-
xml.close
|
10
|
-
|
11
|
-
doc = XML::Document.file(xml.path)
|
12
|
-
assert_nil(doc.find("//*[name(.)=normalize_space(' a ')]"))
|
13
|
-
end
|
14
|
-
end
|
data/work/vc/debug/libxml.exp
DELETED
Binary file
|
data/work/vc/debug/libxml.ilk
DELETED
Binary file
|
data/work/vc/debug/libxml.lib
DELETED
Binary file
|
data/work/vc/debug/libxml.pdb
DELETED
Binary file
|
data/work/vc/debug/libxml.so
DELETED
Binary file
|