libxml-ruby 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/CHANGES +42 -0
  2. data/README +123 -117
  3. data/doc/classes/XML.html +226 -0
  4. data/doc/classes/XML/Attr.html +969 -0
  5. data/doc/classes/XML/Attributes.html +487 -0
  6. data/doc/classes/XML/Document.html +1423 -0
  7. data/doc/classes/XML/Dtd.html +159 -0
  8. data/doc/classes/XML/Error.html +111 -0
  9. data/doc/classes/XML/HTMLParser.html +330 -0
  10. data/doc/classes/XML/InputCallbacks.html +154 -0
  11. data/doc/classes/XML/NS.html +366 -0
  12. data/doc/classes/XML/Node.html +3292 -0
  13. data/doc/classes/XML/Node/FailedModify.html +111 -0
  14. data/doc/classes/XML/Node/Set.html +435 -0
  15. data/doc/classes/XML/Node/SetNamespace.html +111 -0
  16. data/doc/classes/XML/Node/UnknownType.html +111 -0
  17. data/doc/classes/XML/Parser.html +2178 -0
  18. data/doc/classes/XML/Parser/Context.html +1233 -0
  19. data/doc/classes/XML/Parser/ParseError.html +111 -0
  20. data/doc/classes/XML/Reader.html +2173 -0
  21. data/doc/classes/XML/SaxParser.html +396 -0
  22. data/doc/classes/XML/SiblingEnum.html +142 -0
  23. data/doc/classes/XML/State.html +118 -0
  24. data/doc/classes/XML/Tree.html +224 -0
  25. data/doc/classes/XML/XInclude.html +117 -0
  26. data/doc/classes/XML/XInclude/Error.html +111 -0
  27. data/doc/classes/XML/XMLParserOptions.html +198 -0
  28. data/doc/classes/XML/XPath.html +269 -0
  29. data/doc/classes/XML/XPath/Context.html +193 -0
  30. data/doc/classes/XML/XPath/InvalidPath.html +111 -0
  31. data/doc/classes/XML/XPath/Object.html +439 -0
  32. data/doc/classes/XML/XPointer.html +164 -0
  33. data/doc/classes/XML/XPointer/Context.html +117 -0
  34. data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
  35. data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
  36. data/doc/classes/singleton.html +114 -0
  37. data/doc/created.rid +1 -0
  38. data/doc/files/CHANGES.html +375 -0
  39. data/doc/files/LICENSE.html +133 -0
  40. data/doc/files/README.html +279 -0
  41. data/doc/files/VERSION.html +107 -0
  42. data/doc/files/ext/libxml/cbg_c.html +101 -0
  43. data/doc/files/ext/libxml/libxml_c.html +101 -0
  44. data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
  45. data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
  46. data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
  47. data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
  48. data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
  49. data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
  50. data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
  51. data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
  52. data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
  53. data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
  54. data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
  55. data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
  56. data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
  57. data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
  58. data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
  59. data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
  60. data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
  61. data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
  62. data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
  63. data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
  64. data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
  65. data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
  66. data/doc/files/lib/libxml_rb.html +115 -0
  67. data/doc/files/lib/xml/libxml_rb.html +114 -0
  68. data/doc/fr_class_index.html +60 -0
  69. data/doc/fr_file_index.html +56 -0
  70. data/doc/fr_method_index.html +373 -0
  71. data/doc/index.html +24 -0
  72. data/doc/rdoc-style.css +208 -0
  73. data/ext/libxml/cbg.c +76 -76
  74. data/ext/libxml/extconf.rb +308 -308
  75. data/ext/libxml/libxml.c +58 -62
  76. data/ext/libxml/ruby_libxml.h +1 -0
  77. data/ext/libxml/ruby_xml_attr.c +201 -113
  78. data/ext/libxml/ruby_xml_attr.h +6 -9
  79. data/ext/libxml/ruby_xml_attributes.c +268 -0
  80. data/ext/libxml/ruby_xml_attributes.h +17 -0
  81. data/ext/libxml/ruby_xml_document.c +80 -66
  82. data/ext/libxml/ruby_xml_dtd.c +2 -2
  83. data/ext/libxml/ruby_xml_dtd.h +17 -17
  84. data/ext/libxml/ruby_xml_html_parser.c +18 -19
  85. data/ext/libxml/ruby_xml_html_parser.h +29 -29
  86. data/ext/libxml/ruby_xml_input_cbg.c +6 -0
  87. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  88. data/ext/libxml/ruby_xml_node.c +438 -536
  89. data/ext/libxml/ruby_xml_node.h +17 -27
  90. data/ext/libxml/ruby_xml_node_set.c +10 -9
  91. data/ext/libxml/ruby_xml_node_set.h +20 -20
  92. data/ext/libxml/ruby_xml_ns.c +60 -69
  93. data/ext/libxml/ruby_xml_ns.h +12 -21
  94. data/ext/libxml/ruby_xml_parser.c +54 -53
  95. data/ext/libxml/ruby_xml_parser.h +31 -31
  96. data/ext/libxml/ruby_xml_parser_context.c +37 -91
  97. data/ext/libxml/ruby_xml_parser_context.h +20 -22
  98. data/ext/libxml/ruby_xml_reader.h +14 -14
  99. data/ext/libxml/ruby_xml_sax_parser.c +55 -55
  100. data/ext/libxml/ruby_xml_sax_parser.h +56 -56
  101. data/ext/libxml/ruby_xml_schema.c +44 -51
  102. data/ext/libxml/ruby_xml_schema.h +16 -16
  103. data/ext/libxml/ruby_xml_state.c +35 -96
  104. data/ext/libxml/ruby_xml_state.h +2 -3
  105. data/ext/libxml/ruby_xml_tree.h +12 -12
  106. data/ext/libxml/ruby_xml_xinclude.h +13 -13
  107. data/ext/libxml/ruby_xml_xpath.c +57 -18
  108. data/ext/libxml/ruby_xml_xpath.h +23 -23
  109. data/ext/libxml/ruby_xml_xpath_context.c +11 -7
  110. data/ext/libxml/ruby_xml_xpath_context.h +20 -20
  111. data/ext/libxml/ruby_xml_xpath_object.c +9 -16
  112. data/ext/libxml/ruby_xml_xpath_object.h +4 -10
  113. data/ext/libxml/ruby_xml_xpointer.c +11 -11
  114. data/ext/libxml/ruby_xml_xpointer.h +27 -27
  115. data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
  116. data/ext/libxml/version.h +2 -2
  117. data/lib/libxml.rb +134 -125
  118. data/mingw/libiconv-2.dll +0 -0
  119. data/mingw/libxml2-2.dll +0 -0
  120. data/mingw/libxml_ruby.so +0 -0
  121. data/test/ets_copy_bug.rb +1 -1
  122. data/test/ets_copy_bug2.rb +16 -27
  123. data/test/ets_doc_to_s.rb +1 -1
  124. data/test/ets_gpx.rb +1 -1
  125. data/test/ets_node_gc.rb +1 -1
  126. data/test/ets_tsr.rb +1 -1
  127. data/test/tc_well_formed.rb +1 -1
  128. data/test/tc_xml_attributes.rb +106 -0
  129. data/test/tc_xml_document.rb +10 -10
  130. data/test/tc_xml_document_write3.rb +1 -1
  131. data/test/tc_xml_dtd.rb +49 -0
  132. data/test/tc_xml_html_parser.rb +3 -3
  133. data/test/tc_xml_node.rb +69 -33
  134. data/test/tc_xml_node_attr.rb +170 -0
  135. data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
  136. data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
  137. data/test/tc_xml_node_edit.rb +91 -0
  138. data/test/tc_xml_parser.rb +97 -50
  139. data/test/tc_xml_parser_context.rb +61 -23
  140. data/test/tc_xml_schema.rb +39 -0
  141. data/test/tc_xml_xinclude.rb +5 -6
  142. data/test/tc_xml_xpath.rb +51 -27
  143. data/test/test_suite.rb +27 -0
  144. data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
  145. data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
  146. metadata +106 -54
  147. data/mingw/mingw.rake +0 -36
  148. data/test/dtd-test.rb +0 -24
  149. data/test/merge_bug.rb +0 -55
  150. data/test/schema-test.rb +0 -74
  151. data/test/tc_xml_node2.rb +0 -25
  152. data/test/tc_xml_node3.rb +0 -27
  153. data/test/tc_xml_node4.rb +0 -86
  154. data/test/tc_xml_node5.rb +0 -52
  155. data/test/tc_xml_node6.rb +0 -27
  156. data/test/tc_xml_node7.rb +0 -35
  157. data/test/tc_xml_parser2.rb +0 -16
  158. data/test/tc_xml_parser3.rb +0 -23
  159. data/test/tc_xml_parser4.rb +0 -33
  160. data/test/tc_xml_parser5.rb +0 -27
  161. data/test/tc_xml_parser6.rb +0 -23
  162. data/test/tc_xml_parser7.rb +0 -28
  163. data/test/tc_xml_parser8.rb +0 -32
  164. data/test/tc_xml_parser9.rb +0 -11
  165. data/test/tc_xml_xpath2.rb +0 -14
  166. data/work/vc/debug/libxml.exp +0 -0
  167. data/work/vc/debug/libxml.ilk +0 -0
  168. data/work/vc/debug/libxml.lib +0 -0
  169. data/work/vc/debug/libxml.pdb +0 -0
  170. data/work/vc/debug/libxml.so +0 -0
data/CHANGES CHANGED
@@ -1,5 +1,47 @@
1
1
  (See log/ChangeLog for more detailed changes derived directly from source control.)
2
2
 
3
+ == 0.7.0 / 2008-07-09 Charlie Savage
4
+
5
+ * Added new attributes class to provide a more natural way of working with attributes
6
+
7
+ * Fixed XML::Attr to better support namespaces
8
+
9
+ * Added documentation on how to use namespaces with XPath
10
+
11
+ * Removed allocation of extraneous structures used to wrap nodes, namespaces and attributes
12
+
13
+ * Cleaned up tests and added new test suite
14
+
15
+ * Updated rdocs
16
+
17
+ * Cleaned out most of the bug list
18
+
19
+
20
+ == 0.6.0 / 2008-07-01 Charlie Savage
21
+
22
+ * Fixed memory allocation errors in Windows. On Windows, it is essential that the same library that allocates memory must free it. Thus ALLOC calls must be matched to ruby_xfree calls, which they were not. In addition, in one case Ruby was allocating memory to be freed by libxml. On Windows, that's a segmentation fault. On Linux it might fly, but still seems like a bad idea.
23
+
24
+ * Fixed segmentation fault in xml reader expand (same xml tree freed twice)
25
+
26
+ * Applied a number of patches from Tom Bagby, including fixes for xpath segmentation faults and fixes for various memory leaks
27
+
28
+ * Cleaned up a number of compiler warnings
29
+
30
+ * Renamed libxml_so.so to libxml_ruby.so (same for xslt). That wasn't actually my original intention, but um, it kind of sort of happened. It should not be noticeable from an end-user perspective.
31
+
32
+ * Added rake files for building with MingW
33
+
34
+ * Added rake files for packing gems. Note that I did this outside the existing rake tasks because I didn't see how they were actually building the gems.
35
+
36
+ * Cleaned up the tests and added a few more based on bug reports from the Tracker and mailing list.
37
+
38
+ * Cleaned out the patch queue and went through about 1/2 the bug list
39
+
40
+
41
+ === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
42
+
43
+ * Merged Dan's MEM2 branch to trunk.
44
+
3
45
  == 0.5.3 /
4
46
 
5
47
  === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
data/README CHANGED
@@ -1,144 +1,150 @@
1
- == INSTALLATION
2
-
3
- Installation is simple. Follow the following steps:
4
-
5
- === Rubygems
1
+ = libxml-ruby
6
2
 
7
- gem install libxml-ruby
8
-
9
- === Tarball/zip
3
+ == Overview
10
4
 
11
- $ rake test
12
- $ rake install
5
+ The libxml gem provides Ruby language bindings for GNOME's Libxml2
6
+ XML toolkit. It is free software, released under the MIT License.
13
7
 
14
- If extconf yacks up an error, follow the instructions it provides.
15
- You will need to chdir to ext/xml and run 'ruby extconf.rb' to provide
16
- options, after which you can either use Rake for everything or
17
- do with make (make && make install).
8
+ libxml-ruby provides several advantages over REXML:
18
9
 
19
- Once installed, look at the test scripts (tests/*.rb), and run
20
- 'rake doc' to generate API documentation.
21
- You can find the latest documentation at:
10
+ * Speed - libxml is many times faster than REXML
11
+ * Features - libxml provides a number of additional features over REXML, including XML Schema Validation, RelaxNg validation, xslt (see libxslt-ruby)
12
+ * Correctness - libxml passes all 1800+ tests from the OASIS XML Tests Suite
22
13
 
23
- * http://libxml.rubyforge.org/doc
24
14
 
25
- == DEPENDENCIES
15
+ == Requirements
26
16
 
27
- libxml requires a few other libraries to be installed inorder to
28
- function properly.
17
+ libxml-ruby requires Ruby 1.8.4 or higher. It is dependent on
18
+ the following libraries to function properly:
29
19
 
30
20
  * libm (math routines: very standard)
31
21
  * libz (zlib)
32
22
  * libiconv
33
23
  * libxml2
34
24
 
35
- == USAGE
25
+ If you are running Linux or Unix you'll need a C compiler so the extension
26
+ can be compiled when it is installed. If you are running Windows, then install the Windows specific RubyGem which
27
+ includes an already built extension.
36
28
 
37
- Basic usage for reading and writing documents.
38
29
 
39
- === WRITING
30
+ == INSTALLATION
40
31
 
41
- Writing a simple document:
42
-
43
- # require 'rubygems' # if installed via Gems
44
- require 'xml/libxml'
45
-
46
- doc = XML::Document.new()
47
- doc.root = XML::Node.new('root_node')
48
- root = doc.root
49
-
50
- root << elem1 = XML::Node.new('elem1')
51
- elem1['attr1'] = 'val1'
52
- elem1['attr2'] = 'val2'
53
-
54
- root << elem2 = XML::Node.new('elem2')
55
- elem2['attr1'] = 'val1'
56
- elem2['attr2'] = 'val2'
57
-
58
- root << elem3 = XML::Node.new('elem3')
59
- elem3 << elem4 = XML::Node.new('elem4')
60
- elem3 << elem5 = XML::Node.new('elem5')
61
-
62
- elem5 << elem6 = XML::Node.new('elem6')
63
- elem6 << 'Content for element 6'
64
-
65
- elem3['attr'] = 'baz'
66
-
67
- # Namespace hack to reduce the numer of times XML:: is typed
68
- include XML
69
- root << elem7 = Node.new('foo')
70
- 1.upto(10) do |i|
71
- elem7 << n = Node.new('bar')
72
- n << i
73
- end
74
-
75
- format = true
76
- doc.save('output.xml', format)
32
+ The easiest way to install ruby-prof is by using Ruby Gems. To install:
33
+
34
+ <tt>gem install libxml-ruby</tt>
35
+
36
+ If you are running Windows, make sure to install the Win32 RubyGem which
37
+ includes an already built binary file. The binary is built against
38
+ libxml2 version 2.6.32 and iconv version 1.12. Both of these are also
39
+ included as pre-built binaries, and should be put either in the
40
+ libxml/lib directory or on the Windows path.
41
+
42
+ The Windows binaries are biult with MingW. The gem also includes
43
+ a Microsoft VC++ 2005 solution. If you wish to run a debug version
44
+ of libxml-ruby on Windows, then it is highly recommended
45
+ you use VC++.
77
46
 
78
- The file output.xml contains:
79
47
 
80
- <?xml version="1.0"?>
81
- <root_node>
82
- <elem1 attr1="val1" attr2="val2"/>
83
- <elem2 attr1="val1" attr2="val2"/>
84
- <elem3 attr="baz">
85
- <elem4/>
86
- <elem5>
87
- <elem6>Content for element 6</elem6>
88
- </elem5>
89
- </elem3>
90
- <foo>
91
- <bar>1</bar>
92
- <bar>2</bar>
93
- <bar>3</bar>
94
- <bar>4</bar>
95
- <bar>5</bar>
96
- <bar>6</bar>
97
- <bar>7</bar>
98
- <bar>8</bar>
99
- <bar>9</bar>
100
- <bar>10</bar>
101
- </foo>
102
- </root_node>
48
+ == USAGE
49
+
50
+ Basic usage for reading and writing documents.
103
51
 
104
52
  === READING
105
53
 
106
- Reading XML is slightly more complex and there are many more ways to
107
- perform this operation. This reads in and processes the above
108
- generated XML document, output.xml. This script assumes that the
109
- structure of the document is already known.
110
-
111
- # require 'rubygems' # if installed via Gems
112
- require 'xml/libxml'
113
- doc = XML::Document.file('output.xml')
114
- root = doc.root
115
-
116
- puts "Root element name: #{root.name}"
117
-
118
- elem3 = root.find('elem3').to_a.first
119
- puts "Elem3: #{elem3['attr']}"
120
-
121
- doc.find('//root_node/foo/bar').each do |node|
122
- puts "Node path: #{node.path} \t Contents: #{node.content}"
123
- end
54
+ There are several ways to read xml documents.
55
+
56
+ require 'libxml'
57
+ doc = XML::Document.file('output.xml')
58
+ root = doc.root
59
+
60
+ puts "Root element name: #{root.name}"
61
+
62
+ elem3 = root.find('elem3').to_a.first
63
+ puts "Elem3: #{elem3['attr']}"
64
+
65
+ doc.find('//root_node/foo/bar').each do |node|
66
+ puts "Node path: #{node.path} \t Contents: #{node.content}"
67
+ end
124
68
 
125
69
  And your terminal should look like:
126
70
 
127
- Root element name: root_node
128
- Elem3: baz
129
- Node path: /root_node/foo/bar[1] Contents: 1
130
- Node path: /root_node/foo/bar[2] Contents: 2
131
- Node path: /root_node/foo/bar[3] Contents: 3
132
- Node path: /root_node/foo/bar[4] Contents: 4
133
- Node path: /root_node/foo/bar[5] Contents: 5
134
- Node path: /root_node/foo/bar[6] Contents: 6
135
- Node path: /root_node/foo/bar[7] Contents: 7
136
- Node path: /root_node/foo/bar[8] Contents: 8
137
- Node path: /root_node/foo/bar[9] Contents: 9
138
- Node path: /root_node/foo/bar[10] Contents: 10
71
+ Root element name: root_node
72
+ Elem3: baz
73
+ Node path: /root_node/foo/bar[1] Contents: 1
74
+ Node path: /root_node/foo/bar[2] Contents: 2
75
+ Node path: /root_node/foo/bar[3] Contents: 3
76
+ Node path: /root_node/foo/bar[4] Contents: 4
77
+ Node path: /root_node/foo/bar[5] Contents: 5
78
+ Node path: /root_node/foo/bar[6] Contents: 6
79
+ Node path: /root_node/foo/bar[7] Contents: 7
80
+ Node path: /root_node/foo/bar[8] Contents: 8
81
+ Node path: /root_node/foo/bar[9] Contents: 9
82
+ Node path: /root_node/foo/bar[10] Contents: 10
139
83
 
140
- == MORE INFORMATION
141
84
 
142
- If you have any questions, please send email to libxml-devel@rubyforge.org.
85
+ === WRITING
86
+
87
+ To write a simple document:
88
+
89
+ require 'libxml'
90
+
91
+ doc = XML::Document.new()
92
+ doc.root = XML::Node.new('root_node')
93
+ root = doc.root
94
+
95
+ root << elem1 = XML::Node.new('elem1')
96
+ elem1['attr1'] = 'val1'
97
+ elem1['attr2'] = 'val2'
98
+
99
+ root << elem2 = XML::Node.new('elem2')
100
+ elem2['attr1'] = 'val1'
101
+ elem2['attr2'] = 'val2'
102
+
103
+ root << elem3 = XML::Node.new('elem3')
104
+ elem3 << elem4 = XML::Node.new('elem4')
105
+ elem3 << elem5 = XML::Node.new('elem5')
106
+
107
+ elem5 << elem6 = XML::Node.new('elem6')
108
+ elem6 << 'Content for element 6'
109
+
110
+ elem3['attr'] = 'baz'
111
+
112
+ format = true
113
+ doc.save('output.xml', format)
114
+
115
+ The file output.xml contains:
116
+
117
+ <?xml version="1.0"?>
118
+ <root_node>
119
+ <elem1 attr1="val1" attr2="val2"/>
120
+ <elem2 attr1="val1" attr2="val2"/>
121
+ <elem3 attr="baz">
122
+ <elem4/>
123
+ <elem5>
124
+ <elem6>Content for element 6</elem6>
125
+ </elem5>
126
+ </elem3>
127
+ <foo>
128
+ <bar>1</bar>
129
+ <bar>2</bar>
130
+ <bar>3</bar>
131
+ <bar>4</bar>
132
+ <bar>5</bar>
133
+ <bar>6</bar>
134
+ <bar>7</bar>
135
+ <bar>8</bar>
136
+ <bar>9</bar>
137
+ <bar>10</bar>
138
+ </foo>
139
+ </root_node>
140
+
141
+
142
+
143
+ == License
144
+
145
+ See LICENSE for license information.
146
+
147
+ == MORE INFORMATION
143
148
 
144
- # $Id: README 143 2007-08-29 21:45:48Z transami $
149
+ For more information please refer to the documentation. If you have any
150
+ questions, please send email to libxml-devel@rubyforge.org.
@@ -0,0 +1,226 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: XML</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">XML</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/ext/libxml/libxml_c.html">
59
+ ext/libxml/libxml.c
60
+ </a>
61
+ <br />
62
+ <a href="../files/ext/libxml/ruby_xml_attr_c.html">
63
+ ext/libxml/ruby_xml_attr.c
64
+ </a>
65
+ <br />
66
+ <a href="../files/ext/libxml/ruby_xml_attributes_c.html">
67
+ ext/libxml/ruby_xml_attributes.c
68
+ </a>
69
+ <br />
70
+ <a href="../files/ext/libxml/ruby_xml_document_c.html">
71
+ ext/libxml/ruby_xml_document.c
72
+ </a>
73
+ <br />
74
+ <a href="../files/ext/libxml/ruby_xml_dtd_c.html">
75
+ ext/libxml/ruby_xml_dtd.c
76
+ </a>
77
+ <br />
78
+ <a href="../files/ext/libxml/ruby_xml_html_parser_c.html">
79
+ ext/libxml/ruby_xml_html_parser.c
80
+ </a>
81
+ <br />
82
+ <a href="../files/ext/libxml/ruby_xml_input_cbg_c.html">
83
+ ext/libxml/ruby_xml_input_cbg.c
84
+ </a>
85
+ <br />
86
+ <a href="../files/ext/libxml/ruby_xml_node_c.html">
87
+ ext/libxml/ruby_xml_node.c
88
+ </a>
89
+ <br />
90
+ <a href="../files/ext/libxml/ruby_xml_node_set_c.html">
91
+ ext/libxml/ruby_xml_node_set.c
92
+ </a>
93
+ <br />
94
+ <a href="../files/ext/libxml/ruby_xml_ns_c.html">
95
+ ext/libxml/ruby_xml_ns.c
96
+ </a>
97
+ <br />
98
+ <a href="../files/ext/libxml/ruby_xml_parser_c.html">
99
+ ext/libxml/ruby_xml_parser.c
100
+ </a>
101
+ <br />
102
+ <a href="../files/ext/libxml/ruby_xml_parser_context_c.html">
103
+ ext/libxml/ruby_xml_parser_context.c
104
+ </a>
105
+ <br />
106
+ <a href="../files/ext/libxml/ruby_xml_reader_c.html">
107
+ ext/libxml/ruby_xml_reader.c
108
+ </a>
109
+ <br />
110
+ <a href="../files/ext/libxml/ruby_xml_sax_parser_c.html">
111
+ ext/libxml/ruby_xml_sax_parser.c
112
+ </a>
113
+ <br />
114
+ <a href="../files/ext/libxml/ruby_xml_state_c.html">
115
+ ext/libxml/ruby_xml_state.c
116
+ </a>
117
+ <br />
118
+ <a href="../files/ext/libxml/ruby_xml_tree_c.html">
119
+ ext/libxml/ruby_xml_tree.c
120
+ </a>
121
+ <br />
122
+ <a href="../files/ext/libxml/ruby_xml_xinclude_c.html">
123
+ ext/libxml/ruby_xml_xinclude.c
124
+ </a>
125
+ <br />
126
+ <a href="../files/ext/libxml/ruby_xml_xpath_c.html">
127
+ ext/libxml/ruby_xml_xpath.c
128
+ </a>
129
+ <br />
130
+ <a href="../files/ext/libxml/ruby_xml_xpath_context_c.html">
131
+ ext/libxml/ruby_xml_xpath_context.c
132
+ </a>
133
+ <br />
134
+ <a href="../files/ext/libxml/ruby_xml_xpath_object_c.html">
135
+ ext/libxml/ruby_xml_xpath_object.c
136
+ </a>
137
+ <br />
138
+ <a href="../files/ext/libxml/ruby_xml_xpointer_c.html">
139
+ ext/libxml/ruby_xml_xpointer.c
140
+ </a>
141
+ <br />
142
+ <a href="../files/ext/libxml/ruby_xml_xpointer_context_c.html">
143
+ ext/libxml/ruby_xml_xpointer_context.c
144
+ </a>
145
+ <br />
146
+ </td>
147
+ </tr>
148
+
149
+ </table>
150
+ </div>
151
+ <!-- banner header -->
152
+
153
+ <div id="bodyContent">
154
+
155
+
156
+
157
+ <div id="contextContent">
158
+
159
+
160
+
161
+ </div>
162
+
163
+
164
+ </div>
165
+
166
+
167
+ <!-- if includes -->
168
+
169
+ <div id="section">
170
+
171
+ <div id="class-list">
172
+ <h3 class="section-bar">Classes and Modules</h3>
173
+
174
+ Module <a href="XML/SiblingEnum.html" class="link">XML::SiblingEnum</a><br />
175
+ Module <a href="XML/XMLParserOptions.html" class="link">XML::XMLParserOptions</a><br />
176
+ Class <a href="XML/Attr.html" class="link">XML::Attr</a><br />
177
+ Class <a href="XML/Attributes.html" class="link">XML::Attributes</a><br />
178
+ Class <a href="XML/Document.html" class="link">XML::Document</a><br />
179
+ Class <a href="XML/Dtd.html" class="link">XML::Dtd</a><br />
180
+ Class <a href="XML/Error.html" class="link">XML::Error</a><br />
181
+ Class <a href="XML/HTMLParser.html" class="link">XML::HTMLParser</a><br />
182
+ Class <a href="XML/InputCallbacks.html" class="link">XML::InputCallbacks</a><br />
183
+ Class <a href="XML/NS.html" class="link">XML::NS</a><br />
184
+ Class <a href="XML/Node.html" class="link">XML::Node</a><br />
185
+ Class <a href="XML/Parser.html" class="link">XML::Parser</a><br />
186
+ Class <a href="XML/Reader.html" class="link">XML::Reader</a><br />
187
+ Class <a href="XML/SaxParser.html" class="link">XML::SaxParser</a><br />
188
+ Class <a href="XML/State.html" class="link">XML::State</a><br />
189
+ Class <a href="XML/Tree.html" class="link">XML::Tree</a><br />
190
+ Class <a href="XML/XInclude.html" class="link">XML::XInclude</a><br />
191
+ Class <a href="XML/XPath.html" class="link">XML::XPath</a><br />
192
+ Class <a href="XML/XPointer.html" class="link">XML::XPointer</a><br />
193
+
194
+ </div>
195
+
196
+ <div id="constants-list">
197
+ <h3 class="section-bar">Constants</h3>
198
+
199
+ <div class="name-list">
200
+ <table summary="Constants">
201
+ <tr class="top-aligned-row context-row">
202
+ <td class="context-item-name">XML_NAMESPACE</td>
203
+ <td>=</td>
204
+ <td class="context-item-value">rb_str_new2((const char*)XML_XML_NAMESPACE)</td>
205
+ </tr>
206
+ </table>
207
+ </div>
208
+ </div>
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <!-- if method_list -->
216
+
217
+
218
+ </div>
219
+
220
+
221
+ <div id="validator-badges">
222
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
223
+ </div>
224
+
225
+ </body>
226
+ </html>