superfeedr-nokogiri 1.4.0.20091116183308
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +27 -0
- data/CHANGELOG.ja.rdoc +330 -0
- data/CHANGELOG.rdoc +314 -0
- data/Manifest.txt +269 -0
- data/README.ja.rdoc +105 -0
- data/README.rdoc +118 -0
- data/Rakefile +244 -0
- data/bin/nokogiri +49 -0
- data/ext/nokogiri/extconf.rb +145 -0
- data/ext/nokogiri/html_document.c +145 -0
- data/ext/nokogiri/html_document.h +10 -0
- data/ext/nokogiri/html_element_description.c +272 -0
- data/ext/nokogiri/html_element_description.h +10 -0
- data/ext/nokogiri/html_entity_lookup.c +32 -0
- data/ext/nokogiri/html_entity_lookup.h +8 -0
- data/ext/nokogiri/html_sax_parser_context.c +92 -0
- data/ext/nokogiri/html_sax_parser_context.h +11 -0
- data/ext/nokogiri/nokogiri.c +89 -0
- data/ext/nokogiri/nokogiri.h +145 -0
- data/ext/nokogiri/xml_attr.c +92 -0
- data/ext/nokogiri/xml_attr.h +9 -0
- data/ext/nokogiri/xml_attribute_decl.c +67 -0
- data/ext/nokogiri/xml_attribute_decl.h +9 -0
- data/ext/nokogiri/xml_cdata.c +54 -0
- data/ext/nokogiri/xml_cdata.h +9 -0
- data/ext/nokogiri/xml_comment.c +52 -0
- data/ext/nokogiri/xml_comment.h +9 -0
- data/ext/nokogiri/xml_document.c +388 -0
- data/ext/nokogiri/xml_document.h +24 -0
- data/ext/nokogiri/xml_document_fragment.c +46 -0
- data/ext/nokogiri/xml_document_fragment.h +10 -0
- data/ext/nokogiri/xml_dtd.c +192 -0
- data/ext/nokogiri/xml_dtd.h +10 -0
- data/ext/nokogiri/xml_element_content.c +123 -0
- data/ext/nokogiri/xml_element_content.h +10 -0
- data/ext/nokogiri/xml_element_decl.c +69 -0
- data/ext/nokogiri/xml_element_decl.h +9 -0
- data/ext/nokogiri/xml_entity_decl.c +97 -0
- data/ext/nokogiri/xml_entity_decl.h +10 -0
- data/ext/nokogiri/xml_entity_reference.c +50 -0
- data/ext/nokogiri/xml_entity_reference.h +9 -0
- data/ext/nokogiri/xml_io.c +31 -0
- data/ext/nokogiri/xml_io.h +11 -0
- data/ext/nokogiri/xml_namespace.c +74 -0
- data/ext/nokogiri/xml_namespace.h +12 -0
- data/ext/nokogiri/xml_node.c +1060 -0
- data/ext/nokogiri/xml_node.h +13 -0
- data/ext/nokogiri/xml_node_set.c +397 -0
- data/ext/nokogiri/xml_node_set.h +9 -0
- data/ext/nokogiri/xml_processing_instruction.c +54 -0
- data/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/ext/nokogiri/xml_reader.c +593 -0
- data/ext/nokogiri/xml_reader.h +10 -0
- data/ext/nokogiri/xml_relax_ng.c +159 -0
- data/ext/nokogiri/xml_relax_ng.h +9 -0
- data/ext/nokogiri/xml_sax_parser.c +286 -0
- data/ext/nokogiri/xml_sax_parser.h +43 -0
- data/ext/nokogiri/xml_sax_parser_context.c +155 -0
- data/ext/nokogiri/xml_sax_parser_context.h +10 -0
- data/ext/nokogiri/xml_sax_push_parser.c +114 -0
- data/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/ext/nokogiri/xml_schema.c +156 -0
- data/ext/nokogiri/xml_schema.h +9 -0
- data/ext/nokogiri/xml_syntax_error.c +261 -0
- data/ext/nokogiri/xml_syntax_error.h +13 -0
- data/ext/nokogiri/xml_text.c +48 -0
- data/ext/nokogiri/xml_text.h +9 -0
- data/ext/nokogiri/xml_xpath.c +53 -0
- data/ext/nokogiri/xml_xpath.h +11 -0
- data/ext/nokogiri/xml_xpath_context.c +239 -0
- data/ext/nokogiri/xml_xpath_context.h +9 -0
- data/ext/nokogiri/xslt_stylesheet.c +131 -0
- data/ext/nokogiri/xslt_stylesheet.h +9 -0
- data/lib/nokogiri.rb +116 -0
- data/lib/nokogiri/css.rb +25 -0
- data/lib/nokogiri/css/generated_parser.rb +646 -0
- data/lib/nokogiri/css/generated_tokenizer.rb +142 -0
- data/lib/nokogiri/css/node.rb +99 -0
- data/lib/nokogiri/css/parser.rb +82 -0
- data/lib/nokogiri/css/parser.y +227 -0
- data/lib/nokogiri/css/syntax_error.rb +7 -0
- data/lib/nokogiri/css/tokenizer.rb +7 -0
- data/lib/nokogiri/css/tokenizer.rex +54 -0
- data/lib/nokogiri/css/xpath_visitor.rb +162 -0
- data/lib/nokogiri/decorators/slop.rb +33 -0
- data/lib/nokogiri/ffi/html/document.rb +28 -0
- data/lib/nokogiri/ffi/html/element_description.rb +85 -0
- data/lib/nokogiri/ffi/html/entity_lookup.rb +16 -0
- data/lib/nokogiri/ffi/html/sax/parser_context.rb +38 -0
- data/lib/nokogiri/ffi/io_callbacks.rb +42 -0
- data/lib/nokogiri/ffi/libxml.rb +356 -0
- data/lib/nokogiri/ffi/structs/common_node.rb +26 -0
- data/lib/nokogiri/ffi/structs/html_elem_desc.rb +24 -0
- data/lib/nokogiri/ffi/structs/html_entity_desc.rb +13 -0
- data/lib/nokogiri/ffi/structs/xml_alloc.rb +16 -0
- data/lib/nokogiri/ffi/structs/xml_attr.rb +19 -0
- data/lib/nokogiri/ffi/structs/xml_attribute.rb +27 -0
- data/lib/nokogiri/ffi/structs/xml_buffer.rb +16 -0
- data/lib/nokogiri/ffi/structs/xml_document.rb +108 -0
- data/lib/nokogiri/ffi/structs/xml_dtd.rb +28 -0
- data/lib/nokogiri/ffi/structs/xml_element.rb +26 -0
- data/lib/nokogiri/ffi/structs/xml_element_content.rb +17 -0
- data/lib/nokogiri/ffi/structs/xml_entity.rb +32 -0
- data/lib/nokogiri/ffi/structs/xml_enumeration.rb +12 -0
- data/lib/nokogiri/ffi/structs/xml_node.rb +28 -0
- data/lib/nokogiri/ffi/structs/xml_node_set.rb +53 -0
- data/lib/nokogiri/ffi/structs/xml_notation.rb +11 -0
- data/lib/nokogiri/ffi/structs/xml_ns.rb +15 -0
- data/lib/nokogiri/ffi/structs/xml_parser_context.rb +19 -0
- data/lib/nokogiri/ffi/structs/xml_relax_ng.rb +14 -0
- data/lib/nokogiri/ffi/structs/xml_sax_handler.rb +51 -0
- data/lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb +15 -0
- data/lib/nokogiri/ffi/structs/xml_schema.rb +13 -0
- data/lib/nokogiri/ffi/structs/xml_syntax_error.rb +31 -0
- data/lib/nokogiri/ffi/structs/xml_text_reader.rb +12 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_context.rb +37 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_object.rb +35 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb +20 -0
- data/lib/nokogiri/ffi/structs/xslt_stylesheet.rb +13 -0
- data/lib/nokogiri/ffi/xml/attr.rb +41 -0
- data/lib/nokogiri/ffi/xml/attribute_decl.rb +27 -0
- data/lib/nokogiri/ffi/xml/cdata.rb +19 -0
- data/lib/nokogiri/ffi/xml/comment.rb +18 -0
- data/lib/nokogiri/ffi/xml/document.rb +135 -0
- data/lib/nokogiri/ffi/xml/document_fragment.rb +21 -0
- data/lib/nokogiri/ffi/xml/dtd.rb +69 -0
- data/lib/nokogiri/ffi/xml/element_content.rb +43 -0
- data/lib/nokogiri/ffi/xml/element_decl.rb +19 -0
- data/lib/nokogiri/ffi/xml/entity_decl.rb +27 -0
- data/lib/nokogiri/ffi/xml/entity_reference.rb +19 -0
- data/lib/nokogiri/ffi/xml/namespace.rb +44 -0
- data/lib/nokogiri/ffi/xml/node.rb +444 -0
- data/lib/nokogiri/ffi/xml/node_set.rb +133 -0
- data/lib/nokogiri/ffi/xml/processing_instruction.rb +20 -0
- data/lib/nokogiri/ffi/xml/reader.rb +227 -0
- data/lib/nokogiri/ffi/xml/relax_ng.rb +85 -0
- data/lib/nokogiri/ffi/xml/sax/parser.rb +142 -0
- data/lib/nokogiri/ffi/xml/sax/parser_context.rb +67 -0
- data/lib/nokogiri/ffi/xml/sax/push_parser.rb +39 -0
- data/lib/nokogiri/ffi/xml/schema.rb +92 -0
- data/lib/nokogiri/ffi/xml/syntax_error.rb +91 -0
- data/lib/nokogiri/ffi/xml/text.rb +18 -0
- data/lib/nokogiri/ffi/xml/xpath.rb +19 -0
- data/lib/nokogiri/ffi/xml/xpath_context.rb +135 -0
- data/lib/nokogiri/ffi/xslt/stylesheet.rb +47 -0
- data/lib/nokogiri/html.rb +35 -0
- data/lib/nokogiri/html/builder.rb +35 -0
- data/lib/nokogiri/html/document.rb +88 -0
- data/lib/nokogiri/html/document_fragment.rb +15 -0
- data/lib/nokogiri/html/element_description.rb +23 -0
- data/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/lib/nokogiri/html/sax/parser.rb +48 -0
- data/lib/nokogiri/html/sax/parser_context.rb +16 -0
- data/lib/nokogiri/syntax_error.rb +4 -0
- data/lib/nokogiri/version.rb +33 -0
- data/lib/nokogiri/version_warning.rb +11 -0
- data/lib/nokogiri/xml.rb +67 -0
- data/lib/nokogiri/xml/attr.rb +14 -0
- data/lib/nokogiri/xml/attribute_decl.rb +18 -0
- data/lib/nokogiri/xml/builder.rb +405 -0
- data/lib/nokogiri/xml/cdata.rb +11 -0
- data/lib/nokogiri/xml/character_data.rb +7 -0
- data/lib/nokogiri/xml/document.rb +131 -0
- data/lib/nokogiri/xml/document_fragment.rb +69 -0
- data/lib/nokogiri/xml/dtd.rb +11 -0
- data/lib/nokogiri/xml/element_content.rb +36 -0
- data/lib/nokogiri/xml/element_decl.rb +13 -0
- data/lib/nokogiri/xml/entity_decl.rb +15 -0
- data/lib/nokogiri/xml/fragment_handler.rb +71 -0
- data/lib/nokogiri/xml/namespace.rb +13 -0
- data/lib/nokogiri/xml/node.rb +665 -0
- data/lib/nokogiri/xml/node/save_options.rb +42 -0
- data/lib/nokogiri/xml/node_set.rb +307 -0
- data/lib/nokogiri/xml/notation.rb +6 -0
- data/lib/nokogiri/xml/parse_options.rb +85 -0
- data/lib/nokogiri/xml/pp.rb +2 -0
- data/lib/nokogiri/xml/pp/character_data.rb +18 -0
- data/lib/nokogiri/xml/pp/node.rb +56 -0
- data/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/lib/nokogiri/xml/reader.rb +74 -0
- data/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/lib/nokogiri/xml/sax.rb +4 -0
- data/lib/nokogiri/xml/sax/document.rb +160 -0
- data/lib/nokogiri/xml/sax/parser.rb +115 -0
- data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
- data/lib/nokogiri/xml/schema.rb +61 -0
- data/lib/nokogiri/xml/syntax_error.rb +38 -0
- data/lib/nokogiri/xml/xpath.rb +10 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +8 -0
- data/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/lib/nokogiri/xslt.rb +48 -0
- data/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/lib/xsd/xmlparser/nokogiri.rb +71 -0
- data/tasks/test.rb +100 -0
- data/test/css/test_nthiness.rb +159 -0
- data/test/css/test_parser.rb +277 -0
- data/test/css/test_tokenizer.rb +183 -0
- data/test/css/test_xpath_visitor.rb +76 -0
- data/test/ffi/test_document.rb +35 -0
- data/test/files/2ch.html +108 -0
- data/test/files/address_book.rlx +12 -0
- data/test/files/address_book.xml +10 -0
- data/test/files/bar/bar.xsd +4 -0
- data/test/files/dont_hurt_em_why.xml +422 -0
- data/test/files/exslt.xml +8 -0
- data/test/files/exslt.xslt +35 -0
- data/test/files/foo/foo.xsd +4 -0
- data/test/files/po.xml +32 -0
- data/test/files/po.xsd +66 -0
- data/test/files/shift_jis.html +10 -0
- data/test/files/shift_jis.xml +5 -0
- data/test/files/snuggles.xml +3 -0
- data/test/files/staff.dtd +10 -0
- data/test/files/staff.xml +59 -0
- data/test/files/staff.xslt +32 -0
- data/test/files/tlm.html +850 -0
- data/test/files/valid_bar.xml +2 -0
- data/test/helper.rb +136 -0
- data/test/html/sax/test_parser.rb +64 -0
- data/test/html/sax/test_parser_context.rb +48 -0
- data/test/html/test_builder.rb +164 -0
- data/test/html/test_document.rb +390 -0
- data/test/html/test_document_encoding.rb +77 -0
- data/test/html/test_document_fragment.rb +132 -0
- data/test/html/test_element_description.rb +94 -0
- data/test/html/test_named_characters.rb +14 -0
- data/test/html/test_node.rb +228 -0
- data/test/html/test_node_encoding.rb +27 -0
- data/test/test_convert_xpath.rb +135 -0
- data/test/test_css_cache.rb +45 -0
- data/test/test_gc.rb +15 -0
- data/test/test_memory_leak.rb +77 -0
- data/test/test_nokogiri.rb +134 -0
- data/test/test_reader.rb +358 -0
- data/test/test_xslt_transforms.rb +131 -0
- data/test/xml/node/test_save_options.rb +20 -0
- data/test/xml/node/test_subclass.rb +44 -0
- data/test/xml/sax/test_parser.rb +307 -0
- data/test/xml/sax/test_parser_context.rb +56 -0
- data/test/xml/sax/test_push_parser.rb +131 -0
- data/test/xml/test_attr.rb +38 -0
- data/test/xml/test_attribute_decl.rb +82 -0
- data/test/xml/test_builder.rb +167 -0
- data/test/xml/test_cdata.rb +38 -0
- data/test/xml/test_comment.rb +29 -0
- data/test/xml/test_document.rb +607 -0
- data/test/xml/test_document_encoding.rb +26 -0
- data/test/xml/test_document_fragment.rb +138 -0
- data/test/xml/test_dtd.rb +82 -0
- data/test/xml/test_dtd_encoding.rb +33 -0
- data/test/xml/test_element_content.rb +56 -0
- data/test/xml/test_element_decl.rb +73 -0
- data/test/xml/test_entity_decl.rb +83 -0
- data/test/xml/test_entity_reference.rb +21 -0
- data/test/xml/test_namespace.rb +68 -0
- data/test/xml/test_node.rb +889 -0
- data/test/xml/test_node_attributes.rb +34 -0
- data/test/xml/test_node_encoding.rb +107 -0
- data/test/xml/test_node_set.rb +531 -0
- data/test/xml/test_parse_options.rb +52 -0
- data/test/xml/test_processing_instruction.rb +30 -0
- data/test/xml/test_reader_encoding.rb +126 -0
- data/test/xml/test_relax_ng.rb +60 -0
- data/test/xml/test_schema.rb +89 -0
- data/test/xml/test_syntax_error.rb +27 -0
- data/test/xml/test_text.rb +30 -0
- data/test/xml/test_unparented_node.rb +381 -0
- data/test/xml/test_xpath.rb +106 -0
- metadata +430 -0
data/Manifest.txt
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
.autotest
|
2
|
+
CHANGELOG.ja.rdoc
|
3
|
+
CHANGELOG.rdoc
|
4
|
+
Manifest.txt
|
5
|
+
README.ja.rdoc
|
6
|
+
README.rdoc
|
7
|
+
Rakefile
|
8
|
+
bin/nokogiri
|
9
|
+
ext/nokogiri/extconf.rb
|
10
|
+
ext/nokogiri/html_document.c
|
11
|
+
ext/nokogiri/html_document.h
|
12
|
+
ext/nokogiri/html_element_description.c
|
13
|
+
ext/nokogiri/html_element_description.h
|
14
|
+
ext/nokogiri/html_entity_lookup.c
|
15
|
+
ext/nokogiri/html_entity_lookup.h
|
16
|
+
ext/nokogiri/html_sax_parser_context.c
|
17
|
+
ext/nokogiri/html_sax_parser_context.h
|
18
|
+
ext/nokogiri/nokogiri.c
|
19
|
+
ext/nokogiri/nokogiri.h
|
20
|
+
ext/nokogiri/xml_attr.c
|
21
|
+
ext/nokogiri/xml_attr.h
|
22
|
+
ext/nokogiri/xml_attribute_decl.c
|
23
|
+
ext/nokogiri/xml_attribute_decl.h
|
24
|
+
ext/nokogiri/xml_cdata.c
|
25
|
+
ext/nokogiri/xml_cdata.h
|
26
|
+
ext/nokogiri/xml_comment.c
|
27
|
+
ext/nokogiri/xml_comment.h
|
28
|
+
ext/nokogiri/xml_document.c
|
29
|
+
ext/nokogiri/xml_document.h
|
30
|
+
ext/nokogiri/xml_document_fragment.c
|
31
|
+
ext/nokogiri/xml_document_fragment.h
|
32
|
+
ext/nokogiri/xml_dtd.c
|
33
|
+
ext/nokogiri/xml_dtd.h
|
34
|
+
ext/nokogiri/xml_element_content.c
|
35
|
+
ext/nokogiri/xml_element_content.h
|
36
|
+
ext/nokogiri/xml_element_decl.c
|
37
|
+
ext/nokogiri/xml_element_decl.h
|
38
|
+
ext/nokogiri/xml_entity_decl.c
|
39
|
+
ext/nokogiri/xml_entity_decl.h
|
40
|
+
ext/nokogiri/xml_entity_reference.c
|
41
|
+
ext/nokogiri/xml_entity_reference.h
|
42
|
+
ext/nokogiri/xml_io.c
|
43
|
+
ext/nokogiri/xml_io.h
|
44
|
+
ext/nokogiri/xml_namespace.c
|
45
|
+
ext/nokogiri/xml_namespace.h
|
46
|
+
ext/nokogiri/xml_node.c
|
47
|
+
ext/nokogiri/xml_node.h
|
48
|
+
ext/nokogiri/xml_node_set.c
|
49
|
+
ext/nokogiri/xml_node_set.h
|
50
|
+
ext/nokogiri/xml_processing_instruction.c
|
51
|
+
ext/nokogiri/xml_processing_instruction.h
|
52
|
+
ext/nokogiri/xml_reader.c
|
53
|
+
ext/nokogiri/xml_reader.h
|
54
|
+
ext/nokogiri/xml_relax_ng.c
|
55
|
+
ext/nokogiri/xml_relax_ng.h
|
56
|
+
ext/nokogiri/xml_sax_parser.c
|
57
|
+
ext/nokogiri/xml_sax_parser.h
|
58
|
+
ext/nokogiri/xml_sax_parser_context.c
|
59
|
+
ext/nokogiri/xml_sax_parser_context.h
|
60
|
+
ext/nokogiri/xml_sax_push_parser.c
|
61
|
+
ext/nokogiri/xml_sax_push_parser.h
|
62
|
+
ext/nokogiri/xml_schema.c
|
63
|
+
ext/nokogiri/xml_schema.h
|
64
|
+
ext/nokogiri/xml_syntax_error.c
|
65
|
+
ext/nokogiri/xml_syntax_error.h
|
66
|
+
ext/nokogiri/xml_text.c
|
67
|
+
ext/nokogiri/xml_text.h
|
68
|
+
ext/nokogiri/xml_xpath.c
|
69
|
+
ext/nokogiri/xml_xpath.h
|
70
|
+
ext/nokogiri/xml_xpath_context.c
|
71
|
+
ext/nokogiri/xml_xpath_context.h
|
72
|
+
ext/nokogiri/xslt_stylesheet.c
|
73
|
+
ext/nokogiri/xslt_stylesheet.h
|
74
|
+
lib/nokogiri.rb
|
75
|
+
lib/nokogiri/css.rb
|
76
|
+
lib/nokogiri/css/generated_parser.rb
|
77
|
+
lib/nokogiri/css/generated_tokenizer.rb
|
78
|
+
lib/nokogiri/css/node.rb
|
79
|
+
lib/nokogiri/css/parser.rb
|
80
|
+
lib/nokogiri/css/parser.y
|
81
|
+
lib/nokogiri/css/syntax_error.rb
|
82
|
+
lib/nokogiri/css/tokenizer.rb
|
83
|
+
lib/nokogiri/css/tokenizer.rex
|
84
|
+
lib/nokogiri/css/xpath_visitor.rb
|
85
|
+
lib/nokogiri/decorators/slop.rb
|
86
|
+
lib/nokogiri/ffi/html/document.rb
|
87
|
+
lib/nokogiri/ffi/html/element_description.rb
|
88
|
+
lib/nokogiri/ffi/html/entity_lookup.rb
|
89
|
+
lib/nokogiri/ffi/html/sax/parser_context.rb
|
90
|
+
lib/nokogiri/ffi/io_callbacks.rb
|
91
|
+
lib/nokogiri/ffi/libxml.rb
|
92
|
+
lib/nokogiri/ffi/structs/common_node.rb
|
93
|
+
lib/nokogiri/ffi/structs/html_elem_desc.rb
|
94
|
+
lib/nokogiri/ffi/structs/html_entity_desc.rb
|
95
|
+
lib/nokogiri/ffi/structs/xml_alloc.rb
|
96
|
+
lib/nokogiri/ffi/structs/xml_attr.rb
|
97
|
+
lib/nokogiri/ffi/structs/xml_attribute.rb
|
98
|
+
lib/nokogiri/ffi/structs/xml_buffer.rb
|
99
|
+
lib/nokogiri/ffi/structs/xml_document.rb
|
100
|
+
lib/nokogiri/ffi/structs/xml_dtd.rb
|
101
|
+
lib/nokogiri/ffi/structs/xml_element.rb
|
102
|
+
lib/nokogiri/ffi/structs/xml_element_content.rb
|
103
|
+
lib/nokogiri/ffi/structs/xml_entity.rb
|
104
|
+
lib/nokogiri/ffi/structs/xml_enumeration.rb
|
105
|
+
lib/nokogiri/ffi/structs/xml_node.rb
|
106
|
+
lib/nokogiri/ffi/structs/xml_node_set.rb
|
107
|
+
lib/nokogiri/ffi/structs/xml_notation.rb
|
108
|
+
lib/nokogiri/ffi/structs/xml_ns.rb
|
109
|
+
lib/nokogiri/ffi/structs/xml_parser_context.rb
|
110
|
+
lib/nokogiri/ffi/structs/xml_relax_ng.rb
|
111
|
+
lib/nokogiri/ffi/structs/xml_sax_handler.rb
|
112
|
+
lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb
|
113
|
+
lib/nokogiri/ffi/structs/xml_schema.rb
|
114
|
+
lib/nokogiri/ffi/structs/xml_syntax_error.rb
|
115
|
+
lib/nokogiri/ffi/structs/xml_text_reader.rb
|
116
|
+
lib/nokogiri/ffi/structs/xml_xpath_context.rb
|
117
|
+
lib/nokogiri/ffi/structs/xml_xpath_object.rb
|
118
|
+
lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb
|
119
|
+
lib/nokogiri/ffi/structs/xslt_stylesheet.rb
|
120
|
+
lib/nokogiri/ffi/xml/attr.rb
|
121
|
+
lib/nokogiri/ffi/xml/attribute_decl.rb
|
122
|
+
lib/nokogiri/ffi/xml/cdata.rb
|
123
|
+
lib/nokogiri/ffi/xml/comment.rb
|
124
|
+
lib/nokogiri/ffi/xml/document.rb
|
125
|
+
lib/nokogiri/ffi/xml/document_fragment.rb
|
126
|
+
lib/nokogiri/ffi/xml/dtd.rb
|
127
|
+
lib/nokogiri/ffi/xml/element_content.rb
|
128
|
+
lib/nokogiri/ffi/xml/element_decl.rb
|
129
|
+
lib/nokogiri/ffi/xml/entity_decl.rb
|
130
|
+
lib/nokogiri/ffi/xml/entity_reference.rb
|
131
|
+
lib/nokogiri/ffi/xml/namespace.rb
|
132
|
+
lib/nokogiri/ffi/xml/node.rb
|
133
|
+
lib/nokogiri/ffi/xml/node_set.rb
|
134
|
+
lib/nokogiri/ffi/xml/processing_instruction.rb
|
135
|
+
lib/nokogiri/ffi/xml/reader.rb
|
136
|
+
lib/nokogiri/ffi/xml/relax_ng.rb
|
137
|
+
lib/nokogiri/ffi/xml/sax/parser.rb
|
138
|
+
lib/nokogiri/ffi/xml/sax/parser_context.rb
|
139
|
+
lib/nokogiri/ffi/xml/sax/push_parser.rb
|
140
|
+
lib/nokogiri/ffi/xml/schema.rb
|
141
|
+
lib/nokogiri/ffi/xml/syntax_error.rb
|
142
|
+
lib/nokogiri/ffi/xml/text.rb
|
143
|
+
lib/nokogiri/ffi/xml/xpath.rb
|
144
|
+
lib/nokogiri/ffi/xml/xpath_context.rb
|
145
|
+
lib/nokogiri/ffi/xslt/stylesheet.rb
|
146
|
+
lib/nokogiri/html.rb
|
147
|
+
lib/nokogiri/html/builder.rb
|
148
|
+
lib/nokogiri/html/document.rb
|
149
|
+
lib/nokogiri/html/document_fragment.rb
|
150
|
+
lib/nokogiri/html/element_description.rb
|
151
|
+
lib/nokogiri/html/entity_lookup.rb
|
152
|
+
lib/nokogiri/html/sax/parser.rb
|
153
|
+
lib/nokogiri/html/sax/parser_context.rb
|
154
|
+
lib/nokogiri/syntax_error.rb
|
155
|
+
lib/nokogiri/version.rb
|
156
|
+
lib/nokogiri/version_warning.rb
|
157
|
+
lib/nokogiri/xml.rb
|
158
|
+
lib/nokogiri/xml/attr.rb
|
159
|
+
lib/nokogiri/xml/attribute_decl.rb
|
160
|
+
lib/nokogiri/xml/builder.rb
|
161
|
+
lib/nokogiri/xml/cdata.rb
|
162
|
+
lib/nokogiri/xml/character_data.rb
|
163
|
+
lib/nokogiri/xml/document.rb
|
164
|
+
lib/nokogiri/xml/document_fragment.rb
|
165
|
+
lib/nokogiri/xml/dtd.rb
|
166
|
+
lib/nokogiri/xml/element_content.rb
|
167
|
+
lib/nokogiri/xml/element_decl.rb
|
168
|
+
lib/nokogiri/xml/entity_decl.rb
|
169
|
+
lib/nokogiri/xml/fragment_handler.rb
|
170
|
+
lib/nokogiri/xml/namespace.rb
|
171
|
+
lib/nokogiri/xml/node.rb
|
172
|
+
lib/nokogiri/xml/node/save_options.rb
|
173
|
+
lib/nokogiri/xml/node_set.rb
|
174
|
+
lib/nokogiri/xml/notation.rb
|
175
|
+
lib/nokogiri/xml/parse_options.rb
|
176
|
+
lib/nokogiri/xml/pp.rb
|
177
|
+
lib/nokogiri/xml/pp/character_data.rb
|
178
|
+
lib/nokogiri/xml/pp/node.rb
|
179
|
+
lib/nokogiri/xml/processing_instruction.rb
|
180
|
+
lib/nokogiri/xml/reader.rb
|
181
|
+
lib/nokogiri/xml/relax_ng.rb
|
182
|
+
lib/nokogiri/xml/sax.rb
|
183
|
+
lib/nokogiri/xml/sax/document.rb
|
184
|
+
lib/nokogiri/xml/sax/parser.rb
|
185
|
+
lib/nokogiri/xml/sax/parser_context.rb
|
186
|
+
lib/nokogiri/xml/sax/push_parser.rb
|
187
|
+
lib/nokogiri/xml/schema.rb
|
188
|
+
lib/nokogiri/xml/syntax_error.rb
|
189
|
+
lib/nokogiri/xml/xpath.rb
|
190
|
+
lib/nokogiri/xml/xpath/syntax_error.rb
|
191
|
+
lib/nokogiri/xml/xpath_context.rb
|
192
|
+
lib/nokogiri/xslt.rb
|
193
|
+
lib/nokogiri/xslt/stylesheet.rb
|
194
|
+
lib/xsd/xmlparser/nokogiri.rb
|
195
|
+
tasks/test.rb
|
196
|
+
test/css/test_nthiness.rb
|
197
|
+
test/css/test_parser.rb
|
198
|
+
test/css/test_tokenizer.rb
|
199
|
+
test/css/test_xpath_visitor.rb
|
200
|
+
test/ffi/test_document.rb
|
201
|
+
test/files/2ch.html
|
202
|
+
test/files/address_book.rlx
|
203
|
+
test/files/address_book.xml
|
204
|
+
test/files/bar/bar.xsd
|
205
|
+
test/files/dont_hurt_em_why.xml
|
206
|
+
test/files/exslt.xml
|
207
|
+
test/files/exslt.xslt
|
208
|
+
test/files/foo/foo.xsd
|
209
|
+
test/files/po.xml
|
210
|
+
test/files/po.xsd
|
211
|
+
test/files/shift_jis.html
|
212
|
+
test/files/shift_jis.xml
|
213
|
+
test/files/snuggles.xml
|
214
|
+
test/files/staff.dtd
|
215
|
+
test/files/staff.xml
|
216
|
+
test/files/staff.xslt
|
217
|
+
test/files/tlm.html
|
218
|
+
test/files/valid_bar.xml
|
219
|
+
test/helper.rb
|
220
|
+
test/html/sax/test_parser.rb
|
221
|
+
test/html/sax/test_parser_context.rb
|
222
|
+
test/html/test_builder.rb
|
223
|
+
test/html/test_document.rb
|
224
|
+
test/html/test_document_encoding.rb
|
225
|
+
test/html/test_document_fragment.rb
|
226
|
+
test/html/test_element_description.rb
|
227
|
+
test/html/test_named_characters.rb
|
228
|
+
test/html/test_node.rb
|
229
|
+
test/html/test_node_encoding.rb
|
230
|
+
test/test_convert_xpath.rb
|
231
|
+
test/test_css_cache.rb
|
232
|
+
test/test_gc.rb
|
233
|
+
test/test_memory_leak.rb
|
234
|
+
test/test_nokogiri.rb
|
235
|
+
test/test_reader.rb
|
236
|
+
test/test_xslt_transforms.rb
|
237
|
+
test/xml/node/test_save_options.rb
|
238
|
+
test/xml/node/test_subclass.rb
|
239
|
+
test/xml/sax/test_parser.rb
|
240
|
+
test/xml/sax/test_parser_context.rb
|
241
|
+
test/xml/sax/test_push_parser.rb
|
242
|
+
test/xml/test_attr.rb
|
243
|
+
test/xml/test_attribute_decl.rb
|
244
|
+
test/xml/test_builder.rb
|
245
|
+
test/xml/test_cdata.rb
|
246
|
+
test/xml/test_comment.rb
|
247
|
+
test/xml/test_document.rb
|
248
|
+
test/xml/test_document_encoding.rb
|
249
|
+
test/xml/test_document_fragment.rb
|
250
|
+
test/xml/test_dtd.rb
|
251
|
+
test/xml/test_dtd_encoding.rb
|
252
|
+
test/xml/test_element_content.rb
|
253
|
+
test/xml/test_element_decl.rb
|
254
|
+
test/xml/test_entity_decl.rb
|
255
|
+
test/xml/test_entity_reference.rb
|
256
|
+
test/xml/test_namespace.rb
|
257
|
+
test/xml/test_node.rb
|
258
|
+
test/xml/test_node_attributes.rb
|
259
|
+
test/xml/test_node_encoding.rb
|
260
|
+
test/xml/test_node_set.rb
|
261
|
+
test/xml/test_parse_options.rb
|
262
|
+
test/xml/test_processing_instruction.rb
|
263
|
+
test/xml/test_reader_encoding.rb
|
264
|
+
test/xml/test_relax_ng.rb
|
265
|
+
test/xml/test_schema.rb
|
266
|
+
test/xml/test_syntax_error.rb
|
267
|
+
test/xml/test_text.rb
|
268
|
+
test/xml/test_unparented_node.rb
|
269
|
+
test/xml/test_xpath.rb
|
data/README.ja.rdoc
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
= Nokogiri (鋸)
|
2
|
+
|
3
|
+
* http://nokogiri.org/
|
4
|
+
* http://github.com/tenderlove/nokogiri/wikis
|
5
|
+
* http://github.com/tenderlove/nokogiri/tree/master
|
6
|
+
* http://groups.google.com/group/nokogiri-talk
|
7
|
+
* http://github.com/tenderlove/nokogiri/issues
|
8
|
+
|
9
|
+
== DESCRIPTION:
|
10
|
+
|
11
|
+
Nokogiri はHTMLとXMLとSAXとXSLTとReaderのパーサーです。とりわけ重要な特徴は、
|
12
|
+
ドキュメントをXPathやCSS3セレクター経由で探索する機能を持つことです。
|
13
|
+
|
14
|
+
XMLは暴力に似ている - XMLが君の問題を解決しないとしたら、君はXMLを十分に
|
15
|
+
使いこなしていない事になる。
|
16
|
+
|
17
|
+
== FEATURES:
|
18
|
+
|
19
|
+
* XPath による探索
|
20
|
+
* CSS3 のセレクターによる探索
|
21
|
+
* XML/HTMLのビルダー
|
22
|
+
|
23
|
+
XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPathをサポートしています。
|
24
|
+
|
25
|
+
スピードテスト:
|
26
|
+
|
27
|
+
* http://gist.github.com/24605
|
28
|
+
|
29
|
+
== SUPPORT:
|
30
|
+
|
31
|
+
Nokogiriのメーリングリスト:
|
32
|
+
|
33
|
+
* http://groups.google.com/group/nokogiri-talk
|
34
|
+
|
35
|
+
バグ報告:
|
36
|
+
|
37
|
+
* http://github.com/tenderlove/nokogiri/issues
|
38
|
+
|
39
|
+
IRCのチャンネルはfreenodeの #nokogiri です。
|
40
|
+
|
41
|
+
== SYNOPSIS:
|
42
|
+
|
43
|
+
require 'nokogiri'
|
44
|
+
require 'open-uri'
|
45
|
+
|
46
|
+
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
|
47
|
+
|
48
|
+
####
|
49
|
+
# Search for nodes by css
|
50
|
+
doc.css('h3.r a.l').each do |link|
|
51
|
+
puts link.content
|
52
|
+
end
|
53
|
+
|
54
|
+
####
|
55
|
+
# Search for nodes by xpath
|
56
|
+
doc.xpath('//h3/a[@class="l"]').each do |link|
|
57
|
+
puts link.content
|
58
|
+
end
|
59
|
+
|
60
|
+
####
|
61
|
+
# Or mix and match.
|
62
|
+
doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
|
63
|
+
puts link.content
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
== REQUIREMENTS:
|
68
|
+
|
69
|
+
* ruby 1.8 or 1.9
|
70
|
+
* libxml2
|
71
|
+
* libxml2-dev
|
72
|
+
* libxslt
|
73
|
+
* libxslt-dev
|
74
|
+
|
75
|
+
== INSTALL:
|
76
|
+
|
77
|
+
* sudo gem install nokogiri
|
78
|
+
|
79
|
+
== LICENSE:
|
80
|
+
|
81
|
+
(The MIT License)
|
82
|
+
|
83
|
+
Copyright (c) 2008 - 2009:
|
84
|
+
|
85
|
+
* {Aaron Patterson}[http://tenderlovemaking.com]
|
86
|
+
* {Mike Dalessio}[http://mike.daless.io]
|
87
|
+
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
89
|
+
a copy of this software and associated documentation files (the
|
90
|
+
'Software'), to deal in the Software without restriction, including
|
91
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
92
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
93
|
+
permit persons to whom the Software is furnished to do so, subject to
|
94
|
+
the following conditions:
|
95
|
+
|
96
|
+
The above copyright notice and this permission notice shall be
|
97
|
+
included in all copies or substantial portions of the Software.
|
98
|
+
|
99
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
100
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
101
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
102
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
103
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
104
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
105
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
= Nokogiri
|
2
|
+
|
3
|
+
* http://nokogiri.org
|
4
|
+
* http://github.com/tenderlove/nokogiri/wikis
|
5
|
+
* http://github.com/tenderlove/nokogiri/tree/master
|
6
|
+
* http://groups.google.com/group/nokogiri-talk
|
7
|
+
* http://github.com/tenderlove/nokogiri/issues
|
8
|
+
|
9
|
+
== DESCRIPTION:
|
10
|
+
|
11
|
+
Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's
|
12
|
+
many features is the ability to search documents via XPath or CSS3 selectors.
|
13
|
+
|
14
|
+
XML is like violence - if it doesn’t solve your problems, you are not using
|
15
|
+
enough of it.
|
16
|
+
|
17
|
+
== FEATURES:
|
18
|
+
|
19
|
+
* XPath support for document searching
|
20
|
+
* CSS3 selector support for document searching
|
21
|
+
* XML/HTML builder
|
22
|
+
|
23
|
+
Nokogiri parses and searches XML/HTML very quickly, and also has
|
24
|
+
correctly implemented CSS3 selector support as well as XPath support.
|
25
|
+
|
26
|
+
Here is a speed test:
|
27
|
+
|
28
|
+
* http://gist.github.com/24605
|
29
|
+
|
30
|
+
== SUPPORT:
|
31
|
+
|
32
|
+
The Nokogiri {mailing list}[http://groups.google.com/group/nokogiri-talk]
|
33
|
+
is available here:
|
34
|
+
|
35
|
+
* http://groups.google.com/group/nokogiri-talk
|
36
|
+
|
37
|
+
The bug tracker is available here:
|
38
|
+
|
39
|
+
* http://github.com/tenderlove/nokogiri/issues
|
40
|
+
|
41
|
+
The IRC channel is #nokogiri on freenode.
|
42
|
+
|
43
|
+
== SYNOPSIS:
|
44
|
+
|
45
|
+
require 'nokogiri'
|
46
|
+
require 'open-uri'
|
47
|
+
|
48
|
+
# Get a Nokogiri::HTML:Document for the page we’re interested in...
|
49
|
+
|
50
|
+
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
|
51
|
+
|
52
|
+
# Do funky things with it using Nokogiri::XML::Node methods...
|
53
|
+
|
54
|
+
####
|
55
|
+
# Search for nodes by css
|
56
|
+
doc.css('h3.r a.l').each do |link|
|
57
|
+
puts link.content
|
58
|
+
end
|
59
|
+
|
60
|
+
####
|
61
|
+
# Search for nodes by xpath
|
62
|
+
doc.xpath('//h3/a[@class="l"]').each do |link|
|
63
|
+
puts link.content
|
64
|
+
end
|
65
|
+
|
66
|
+
####
|
67
|
+
# Or mix and match.
|
68
|
+
doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
|
69
|
+
puts link.content
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
== REQUIREMENTS:
|
74
|
+
|
75
|
+
* ruby 1.8 or 1.9
|
76
|
+
* libxml2
|
77
|
+
* libxml2-dev
|
78
|
+
* libxslt
|
79
|
+
* libxslt-dev
|
80
|
+
|
81
|
+
== INSTALL:
|
82
|
+
|
83
|
+
* sudo gem install nokogiri
|
84
|
+
|
85
|
+
== DEVELOPMENT:
|
86
|
+
|
87
|
+
Developing Nokogiri requires racc and rexical.
|
88
|
+
|
89
|
+
* rake install:deps
|
90
|
+
* rake test
|
91
|
+
|
92
|
+
== LICENSE:
|
93
|
+
|
94
|
+
(The MIT License)
|
95
|
+
|
96
|
+
Copyright (c) 2008 - 2009:
|
97
|
+
|
98
|
+
* {Aaron Patterson}[http://tenderlovemaking.com]
|
99
|
+
* {Mike Dalessio}[http://mike.daless.io]
|
100
|
+
|
101
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
102
|
+
a copy of this software and associated documentation files (the
|
103
|
+
'Software'), to deal in the Software without restriction, including
|
104
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
105
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
106
|
+
permit persons to whom the Software is furnished to do so, subject to
|
107
|
+
the following conditions:
|
108
|
+
|
109
|
+
The above copyright notice and this permission notice shall be
|
110
|
+
included in all copies or substantial portions of the Software.
|
111
|
+
|
112
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
113
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
114
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
115
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
116
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
117
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
118
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|