coupa-libxml-ruby 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +488 -0
- data/LICENSE +22 -0
- data/README +161 -0
- data/Rakefile +188 -0
- data/doc/css/normal.css +182 -0
- data/doc/img/raze-tiny.png +0 -0
- data/doc/img/red-cube.jpg +0 -0
- data/doc/img/xml-ruby.png +0 -0
- data/doc/index.xml +43 -0
- data/doc/install.xml +77 -0
- data/doc/layout.rhtml +38 -0
- data/doc/layout.xsl +67 -0
- data/doc/license.xml +32 -0
- data/doc/log/changelog.xml +1324 -0
- data/doc/log/changelog.xsl +42 -0
- data/doc/rdoc/classes/LibXML.html +207 -0
- data/doc/rdoc/classes/LibXML/XML.html +407 -0
- data/doc/rdoc/classes/LibXML/XML/Attr.html +521 -0
- data/doc/rdoc/classes/LibXML/XML/AttrDecl.html +360 -0
- data/doc/rdoc/classes/LibXML/XML/Attributes.html +149 -0
- data/doc/rdoc/classes/LibXML/XML/Document.html +460 -0
- data/doc/rdoc/classes/LibXML/XML/Error.html +129 -0
- data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +263 -0
- data/doc/rdoc/classes/LibXML/XML/Namespace.html +248 -0
- data/doc/rdoc/classes/LibXML/XML/Namespaces.html +200 -0
- data/doc/rdoc/classes/LibXML/XML/Node.html +1351 -0
- data/doc/rdoc/classes/LibXML/XML/Parser.html +328 -0
- data/doc/rdoc/classes/LibXML/XML/Reader.html +172 -0
- data/doc/rdoc/classes/LibXML/XML/SaxParser.html +232 -0
- data/doc/rdoc/classes/LibXML/XML/SaxParser/Callbacks.html +506 -0
- data/doc/rdoc/classes/LibXML/XML/SaxParser/VerboseCallbacks.html +555 -0
- data/doc/rdoc/classes/LibXML/XML/XPath.html +111 -0
- data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +162 -0
- data/doc/rdoc/classes/cXMLDtd.html +114 -0
- data/doc/rdoc/classes/cXMLNode.html +114 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/CHANGES.html +794 -0
- data/doc/rdoc/files/LICENSE.html +131 -0
- data/doc/rdoc/files/README.html +343 -0
- data/doc/rdoc/files/ext/libxml/libxml_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_attr_decl_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_cbg_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_encoding_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_error_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_context_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_options_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_io_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_namespace_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_namespaces_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_options_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_relaxng_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_sax2_handler_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_expression_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
- data/doc/rdoc/files/lib/libxml/attr_decl_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/attr_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/attributes_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/document_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/error_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/hpricot_rb.html +192 -0
- data/doc/rdoc/files/lib/libxml/html_parser_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/namespace_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/namespaces_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/node_rb.html +108 -0
- data/doc/rdoc/files/lib/libxml/ns_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/parser_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/properties_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/reader_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/sax_callbacks_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/sax_parser_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/tree_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml/xpath_object_rb.html +101 -0
- data/doc/rdoc/files/lib/libxml_rb.html +133 -0
- data/doc/rdoc/files/lib/xml/libxml_rb.html +124 -0
- data/doc/rdoc/files/lib/xml_rb.html +134 -0
- data/doc/rdoc/fr_class_index.html +46 -0
- data/doc/rdoc/fr_file_index.html +84 -0
- data/doc/rdoc/fr_method_index.html +155 -0
- data/doc/rdoc/index.html +24 -0
- data/doc/rdoc/rdoc-style.css +208 -0
- data/ext/libxml/Makefile +157 -0
- data/ext/libxml/build.log +4 -0
- data/ext/libxml/extconf.h +5 -0
- data/ext/libxml/extconf.rb +278 -0
- data/ext/libxml/libxml.c +77 -0
- data/ext/libxml/libxml.o +0 -0
- data/ext/libxml/libxml_ruby.bundle +0 -0
- data/ext/libxml/mkmf.log +228 -0
- data/ext/libxml/ruby_libxml.h +93 -0
- data/ext/libxml/ruby_xml.c +893 -0
- data/ext/libxml/ruby_xml.h +10 -0
- data/ext/libxml/ruby_xml.o +0 -0
- data/ext/libxml/ruby_xml_attr.c +352 -0
- data/ext/libxml/ruby_xml_attr.h +14 -0
- data/ext/libxml/ruby_xml_attr.o +0 -0
- data/ext/libxml/ruby_xml_attr_decl.c +171 -0
- data/ext/libxml/ruby_xml_attr_decl.h +13 -0
- data/ext/libxml/ruby_xml_attr_decl.o +0 -0
- data/ext/libxml/ruby_xml_attributes.c +277 -0
- data/ext/libxml/ruby_xml_attributes.h +17 -0
- data/ext/libxml/ruby_xml_attributes.o +0 -0
- data/ext/libxml/ruby_xml_cbg.c +86 -0
- data/ext/libxml/ruby_xml_cbg.o +0 -0
- data/ext/libxml/ruby_xml_document.c +1006 -0
- data/ext/libxml/ruby_xml_document.c.old +936 -0
- data/ext/libxml/ruby_xml_document.h +17 -0
- data/ext/libxml/ruby_xml_document.o +0 -0
- data/ext/libxml/ruby_xml_dtd.c +257 -0
- data/ext/libxml/ruby_xml_dtd.h +9 -0
- data/ext/libxml/ruby_xml_dtd.o +0 -0
- data/ext/libxml/ruby_xml_encoding.c +134 -0
- data/ext/libxml/ruby_xml_encoding.h +12 -0
- data/ext/libxml/ruby_xml_encoding.o +0 -0
- data/ext/libxml/ruby_xml_error.c +1004 -0
- data/ext/libxml/ruby_xml_error.h +14 -0
- data/ext/libxml/ruby_xml_error.o +0 -0
- data/ext/libxml/ruby_xml_html_parser.c +92 -0
- data/ext/libxml/ruby_xml_html_parser.h +12 -0
- data/ext/libxml/ruby_xml_html_parser.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_context.c +308 -0
- data/ext/libxml/ruby_xml_html_parser_context.h +12 -0
- data/ext/libxml/ruby_xml_html_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_options.c +40 -0
- data/ext/libxml/ruby_xml_html_parser_options.h +12 -0
- data/ext/libxml/ruby_xml_html_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_input_cbg.c +191 -0
- data/ext/libxml/ruby_xml_input_cbg.h +20 -0
- data/ext/libxml/ruby_xml_input_cbg.o +0 -0
- data/ext/libxml/ruby_xml_io.c +30 -0
- data/ext/libxml/ruby_xml_io.h +9 -0
- data/ext/libxml/ruby_xml_io.o +0 -0
- data/ext/libxml/ruby_xml_namespace.c +170 -0
- data/ext/libxml/ruby_xml_namespace.h +12 -0
- data/ext/libxml/ruby_xml_namespace.o +0 -0
- data/ext/libxml/ruby_xml_namespaces.c +295 -0
- data/ext/libxml/ruby_xml_namespaces.h +11 -0
- data/ext/libxml/ruby_xml_namespaces.o +0 -0
- data/ext/libxml/ruby_xml_node.c +1386 -0
- data/ext/libxml/ruby_xml_node.h +13 -0
- data/ext/libxml/ruby_xml_node.o +0 -0
- data/ext/libxml/ruby_xml_parser.c +94 -0
- data/ext/libxml/ruby_xml_parser.h +14 -0
- data/ext/libxml/ruby_xml_parser.o +0 -0
- data/ext/libxml/ruby_xml_parser_context.c +982 -0
- data/ext/libxml/ruby_xml_parser_context.h +12 -0
- data/ext/libxml/ruby_xml_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_parser_options.c +68 -0
- data/ext/libxml/ruby_xml_parser_options.h +14 -0
- data/ext/libxml/ruby_xml_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_reader.c +1002 -0
- data/ext/libxml/ruby_xml_reader.h +14 -0
- data/ext/libxml/ruby_xml_reader.o +0 -0
- data/ext/libxml/ruby_xml_relaxng.c +111 -0
- data/ext/libxml/ruby_xml_relaxng.h +10 -0
- data/ext/libxml/ruby_xml_relaxng.o +0 -0
- data/ext/libxml/ruby_xml_sax2_handler.c +322 -0
- data/ext/libxml/ruby_xml_sax2_handler.h +12 -0
- data/ext/libxml/ruby_xml_sax2_handler.o +0 -0
- data/ext/libxml/ruby_xml_sax_parser.c +137 -0
- data/ext/libxml/ruby_xml_sax_parser.h +12 -0
- data/ext/libxml/ruby_xml_sax_parser.o +0 -0
- data/ext/libxml/ruby_xml_schema.c +159 -0
- data/ext/libxml/ruby_xml_schema.h +11 -0
- data/ext/libxml/ruby_xml_schema.o +0 -0
- data/ext/libxml/ruby_xml_version.h +9 -0
- data/ext/libxml/ruby_xml_xinclude.c +18 -0
- data/ext/libxml/ruby_xml_xinclude.h +13 -0
- data/ext/libxml/ruby_xml_xinclude.o +0 -0
- data/ext/libxml/ruby_xml_xpath.c +107 -0
- data/ext/libxml/ruby_xml_xpath.h +12 -0
- data/ext/libxml/ruby_xml_xpath.o +0 -0
- data/ext/libxml/ruby_xml_xpath_context.c +387 -0
- data/ext/libxml/ruby_xml_xpath_context.h +11 -0
- data/ext/libxml/ruby_xml_xpath_context.o +0 -0
- data/ext/libxml/ruby_xml_xpath_expression.c +83 -0
- data/ext/libxml/ruby_xml_xpath_expression.h +12 -0
- data/ext/libxml/ruby_xml_xpath_expression.o +0 -0
- data/ext/libxml/ruby_xml_xpath_object.c +336 -0
- data/ext/libxml/ruby_xml_xpath_object.h +19 -0
- data/ext/libxml/ruby_xml_xpath_object.o +0 -0
- data/ext/libxml/ruby_xml_xpointer.c +101 -0
- data/ext/libxml/ruby_xml_xpointer.h +13 -0
- data/ext/libxml/ruby_xml_xpointer.o +0 -0
- data/ext/mingw/Rakefile +34 -0
- data/ext/mingw/build.rake +41 -0
- data/ext/vc/libxml_ruby.sln +26 -0
- data/lib/libxml.rb +30 -0
- data/lib/libxml/attr.rb +111 -0
- data/lib/libxml/attr_decl.rb +78 -0
- data/lib/libxml/attributes.rb +12 -0
- data/lib/libxml/document.rb +190 -0
- data/lib/libxml/error.rb +88 -0
- data/lib/libxml/hpricot.rb +76 -0
- data/lib/libxml/html_parser.rb +94 -0
- data/lib/libxml/namespace.rb +60 -0
- data/lib/libxml/namespaces.rb +36 -0
- data/lib/libxml/node.rb +385 -0
- data/lib/libxml/ns.rb +20 -0
- data/lib/libxml/parser.rb +365 -0
- data/lib/libxml/properties.rb +21 -0
- data/lib/libxml/reader.rb +27 -0
- data/lib/libxml/sax_callbacks.rb +178 -0
- data/lib/libxml/sax_parser.rb +56 -0
- data/lib/libxml/tree.rb +27 -0
- data/lib/libxml/xpath_object.rb +14 -0
- data/lib/xml.rb +14 -0
- data/lib/xml/libxml.rb +8 -0
- data/setup.rb +1585 -0
- data/test/etc_doc_to_s.rb +19 -0
- data/test/ets_doc_file.rb +15 -0
- data/test/ets_doc_to_s.rb +21 -0
- data/test/ets_gpx.rb +26 -0
- data/test/ets_node_gc.rb +21 -0
- data/test/ets_test.xml +2 -0
- data/test/ets_tsr.rb +9 -0
- data/test/model/atom.xml +13 -0
- data/test/model/bands.xml +5 -0
- data/test/model/books.xml +146 -0
- data/test/model/merge_bug_data.xml +58 -0
- data/test/model/ruby-lang.html +238 -0
- data/test/model/rubynet.xml +79 -0
- data/test/model/rubynet_project +1 -0
- data/test/model/shiporder.rnc +28 -0
- data/test/model/shiporder.rng +86 -0
- data/test/model/shiporder.xml +23 -0
- data/test/model/shiporder.xsd +31 -0
- data/test/model/soap.xml +27 -0
- data/test/model/xinclude.xml +5 -0
- data/test/tc_attr.rb +170 -0
- data/test/tc_attr_decl.rb +131 -0
- data/test/tc_attributes.rb +133 -0
- data/test/tc_deprecated_require.rb +11 -0
- data/test/tc_document.rb +113 -0
- data/test/tc_document_write.rb +118 -0
- data/test/tc_dtd.rb +123 -0
- data/test/tc_error.rb +136 -0
- data/test/tc_html_parser.rb +138 -0
- data/test/tc_namespace.rb +59 -0
- data/test/tc_namespaces.rb +174 -0
- data/test/tc_node.rb +181 -0
- data/test/tc_node_cdata.rb +49 -0
- data/test/tc_node_comment.rb +30 -0
- data/test/tc_node_copy.rb +40 -0
- data/test/tc_node_edit.rb +158 -0
- data/test/tc_node_text.rb +69 -0
- data/test/tc_node_write.rb +83 -0
- data/test/tc_node_xlink.rb +26 -0
- data/test/tc_parser.rb +330 -0
- data/test/tc_parser_context.rb +186 -0
- data/test/tc_properties.rb +36 -0
- data/test/tc_reader.rb +284 -0
- data/test/tc_relaxng.rb +51 -0
- data/test/tc_sax_parser.rb +274 -0
- data/test/tc_schema.rb +51 -0
- data/test/tc_traversal.rb +220 -0
- data/test/tc_xinclude.rb +19 -0
- data/test/tc_xml.rb +224 -0
- data/test/tc_xpath.rb +193 -0
- data/test/tc_xpath_context.rb +78 -0
- data/test/tc_xpath_expression.rb +35 -0
- data/test/tc_xpointer.rb +72 -0
- data/test/test_suite.rb +33 -0
- metadata +376 -0
data/CHANGES
ADDED
@@ -0,0 +1,488 @@
|
|
1
|
+
== coupa-1.1.3 / 2010-04-26 Victor Lin
|
2
|
+
|
3
|
+
* Forked from LibXML-Ruby-1.1.3
|
4
|
+
|
5
|
+
* Added c14n support
|
6
|
+
|
7
|
+
|
8
|
+
== 1.1.3 / 2009-03-18 Charlie Savage
|
9
|
+
|
10
|
+
* Improve performance 10 to 20% by turning on libxml2's dictionary
|
11
|
+
feature that allows parsers to reuse previously parsed strings.
|
12
|
+
|
13
|
+
* Fix XML::Node#remove! to work correctly with libxml's dictionary feature.
|
14
|
+
|
15
|
+
* Correctly set up parser context options.
|
16
|
+
|
17
|
+
* Simplify DOM modification code (Node#next=, Node#prev=, Node#sibling=) and
|
18
|
+
update documentation.
|
19
|
+
|
20
|
+
* Deprecated Node#add_child and Node#child=, use Node#<< instead
|
21
|
+
|
22
|
+
* Fix documentation for Node#<<
|
23
|
+
|
24
|
+
* Added Document#import to enable moving nodes from one document
|
25
|
+
to another document.
|
26
|
+
|
27
|
+
|
28
|
+
== 1.1.2 / 2009-03-12 Charlie Savage
|
29
|
+
|
30
|
+
* Added XML::Node#inner_xml helper method.
|
31
|
+
|
32
|
+
* Fix segmentation that could occur when calling the mark function on a
|
33
|
+
previously freed node.
|
34
|
+
|
35
|
+
== 1.1.1 / 2009-03-10 Charlie Savage
|
36
|
+
|
37
|
+
* Fix - Only include extra html parser context methods for versions of libxml
|
38
|
+
older than 2.6.27.
|
39
|
+
|
40
|
+
== 1.1.0 / 2009-03-09 Charlie Savage
|
41
|
+
|
42
|
+
* Fix bug caused by the mark function being called on partially initialized
|
43
|
+
attributes.
|
44
|
+
|
45
|
+
* Revert back to libxml2's internal memory manager.
|
46
|
+
|
47
|
+
== 1.0.0 / 2009-03-05 Charlie Savage
|
48
|
+
|
49
|
+
* OS X (Charlie Savage). Update bindings to support the default installed
|
50
|
+
version of libxml2 (2.6.16) on OS X 10.5 and the latest version available
|
51
|
+
via MacPorts.
|
52
|
+
|
53
|
+
== 0.9.9 / 2009-03-05 Charlie Savage
|
54
|
+
|
55
|
+
* Ruby 1.9.1 support (Charlie Savage). libxml-ruby now compiles and runs on either
|
56
|
+
1.8.6 and 1.9.1. With 1.8.6 all tests should pass while on 1.9.1 all but
|
57
|
+
for encoding tests pass. The port to Ruby 1.9.1 revealed two memory
|
58
|
+
allocation bugs (one with dtds, one with nodes) which are now fixed.
|
59
|
+
|
60
|
+
* Better OS X support (Joe Khoobyar). The default version of libxml2
|
61
|
+
on OS X 10.5 is fairly old, resulting in this link error:
|
62
|
+
|
63
|
+
NSLinkModule() error
|
64
|
+
dyld: Symbol not found: _htmlNewParserCtxt
|
65
|
+
|
66
|
+
This can be fixed by using MacPorts to get a newer version of libxml2.
|
67
|
+
To make use of MacPorts, the build script has been updated to use xml2-config.
|
68
|
+
This can be fine-tuned using the new --with-xml2-config / --without-xml2-config
|
69
|
+
options to extconf.rb (default is --without-xml2-config to match existing behavior).
|
70
|
+
|
71
|
+
* Greatly reduced memory usage (Joe Khoobyar).
|
72
|
+
See http://rubyforge.org/pipermail/libxml-devel/2009-February/001375.html.
|
73
|
+
|
74
|
+
* Add Document#xhtml? and document#node_type methods (Joe Khoobyar)
|
75
|
+
|
76
|
+
* Add XPath::Object#last (Joe Khoobyar)
|
77
|
+
|
78
|
+
* Provide finer control over CDATA nodes on a parser by parser basis (Joe Khoobyar).
|
79
|
+
|
80
|
+
* Bug fix - Namespaces were incorrectly merged with attributes in the new sax2
|
81
|
+
handler (Charlie Savage).
|
82
|
+
|
83
|
+
* Bug fix - Support iterating over nodes and attributes even with blocks
|
84
|
+
that call remove! (Charlie Savage)
|
85
|
+
|
86
|
+
* Bug fix - If reader.node is NULL, return nil instead of crashing (Charlie Savage)
|
87
|
+
|
88
|
+
* Bug fix - Dtd's owned by documents were freed twice in some circumstances (Joe Khoobyar).
|
89
|
+
|
90
|
+
* Bug fix - Fix output escaping on attributes nodes (Joe Khoobyar).
|
91
|
+
|
92
|
+
* Bug fix - Make sure IO objects are not garbage collected when used
|
93
|
+
as parser sources (Charlie Savage).
|
94
|
+
|
95
|
+
== 0.9.8 / 2009-1-24 Charlie Savage
|
96
|
+
|
97
|
+
* Refactored XML::Parser, XML::HTMLParser, XML::SaxParser and
|
98
|
+
XML::Reader to have consistent APIs. All the parsers
|
99
|
+
now take a context object in their constructors, allowing fine
|
100
|
+
grained control over the parsers for advanced use cases. These
|
101
|
+
API changes are backwards compatible except
|
102
|
+
for XML::Reader, which now takes an optional hash table as a
|
103
|
+
second parameter in its various constructors versus an optional
|
104
|
+
boolean value.
|
105
|
+
|
106
|
+
* Updated all APIs to use the encoding constants defined
|
107
|
+
in XML::Encoding versus string values. This API change
|
108
|
+
is not backwards compatible.
|
109
|
+
|
110
|
+
* Added support for attribute declarations in DTD's via the new
|
111
|
+
XML::AttrDecl class (Len Lattanzi)
|
112
|
+
|
113
|
+
* Support libxml's content escaping capabilities for text nodes by
|
114
|
+
wrapping libxml's "xmlStringText" and "xmlStringTextNoenc"
|
115
|
+
(Joe Khoobyar).
|
116
|
+
|
117
|
+
* Updated XML::Reader#read API to return true if a node was read,
|
118
|
+
false if node was not read and raises an exception on an error.
|
119
|
+
Previously #read returned 1 if a node was read, 0 if a node was
|
120
|
+
not read and -1 for an error. This change is not backwards
|
121
|
+
compatible, but provides a more natural interface for Ruby by
|
122
|
+
allowing code like this:
|
123
|
+
|
124
|
+
while reader.read
|
125
|
+
# do stuff
|
126
|
+
end
|
127
|
+
|
128
|
+
* Changed XML::Error exception objects to return copies of nodes that
|
129
|
+
cause parse errors instead of the original node. This prevents
|
130
|
+
segmentation faults when the error is reraised.
|
131
|
+
|
132
|
+
* Added XML::Reader#node method.
|
133
|
+
|
134
|
+
* Fixed compile errors on OS X which uses an older version of libxml.
|
135
|
+
|
136
|
+
* Fixed memory leak when performing XPath searches.
|
137
|
+
|
138
|
+
* Fixed rdocs.
|
139
|
+
|
140
|
+
* Don't override libxml's default settings for entity substitution and
|
141
|
+
loading external DTDs. This may break some code - you may need to
|
142
|
+
add in a call to XML.default_substitute_entities = true or
|
143
|
+
XML.default_load_external_dtd = true.
|
144
|
+
|
145
|
+
|
146
|
+
== 0.9.7 / 2008-12-08 Charlie Savage
|
147
|
+
|
148
|
+
* Added SAX2 support. SAX handlers now define two new callbacks,
|
149
|
+
on_start_element_ns and on_end_element_ns methods. These
|
150
|
+
new callbacks support namespaces, making them superior to the older
|
151
|
+
callbacks on_start_element and on_end_element methods. The old callbacks
|
152
|
+
are still supported, but may be deprecated in the future depending
|
153
|
+
on community feedback.
|
154
|
+
|
155
|
+
* Added SAX support for libxml's structured error handling.
|
156
|
+
That menas sax handlers now define a new callback, on_error,
|
157
|
+
which takes one parameter, an instance of XML::Error. The older
|
158
|
+
on_parser_error, on_parser_warning and on_parser_fatal_error
|
159
|
+
callbacks are no longer suported so you must port your code.
|
160
|
+
Note that the older callbacks took one string parameter, instead of
|
161
|
+
an XML::Error object.
|
162
|
+
|
163
|
+
* Experimental work-around for libxml error handling bug - see
|
164
|
+
http://mail.gnome.org/archives/xml/2008-December/msg00014.html
|
165
|
+
for more information.
|
166
|
+
|
167
|
+
* Fix compilation bugs on Solaris.
|
168
|
+
|
169
|
+
* Fix Rdoc compilation bug.
|
170
|
+
|
171
|
+
|
172
|
+
== 0.9.6 / 2008-12-08 Charlie Savage
|
173
|
+
|
174
|
+
* Refactored namespace handling. The existing, and inconsistent,
|
175
|
+
namespace methods defined on XML::Node have been deprecated.
|
176
|
+
They have been replaced by a the new XML::Namespaces class.
|
177
|
+
Use this class to inspect a node's namespace, its default
|
178
|
+
namespace, its namespace definitions and which namespaces
|
179
|
+
are in scope. It can be accessed via the the
|
180
|
+
XML::Node#namespaces method.
|
181
|
+
|
182
|
+
* Rationalized XML::Document#save, XML::Document#to_s and
|
183
|
+
XML::Node#to_s to take an optional hash table of parameters
|
184
|
+
that control how output is generated. Supported parameters
|
185
|
+
include setting indentation on or off, the indentation level
|
186
|
+
and the output encoding. This is an API change and may break
|
187
|
+
existing calls to XML::Document#save. However, the previous
|
188
|
+
API was broken - setting the encoding resulted in an error so
|
189
|
+
its unlikely anyone is using it.
|
190
|
+
|
191
|
+
* Rationalized XML::Document#debug, XML::Node#debug, XML::XPath::XPathObject#Debug.
|
192
|
+
|
193
|
+
* Deprecated a number of duplicate dump* and debug_* methods in
|
194
|
+
XML::Document and XML::Node.
|
195
|
+
|
196
|
+
* Additional Ruby 1.9.1 compatability fixes.
|
197
|
+
|
198
|
+
* Cleaned up header file guards.
|
199
|
+
|
200
|
+
== 0.9.5 / 2008-11-29 Charlie Savage
|
201
|
+
|
202
|
+
* Ruby 1.9.1 preview release compatability (Felipe Contreras)
|
203
|
+
|
204
|
+
* Update Node#remove! to return the removed node and to set
|
205
|
+
its document to nil. This allows the node to be either
|
206
|
+
moved to another document, another part of the same document
|
207
|
+
or to be freed on the next garbage collection once its
|
208
|
+
references have gone out of scope.
|
209
|
+
|
210
|
+
* Fix bug where XPathExpression#compile mistakenly overwrote
|
211
|
+
RegExp#compile.
|
212
|
+
|
213
|
+
* Update Node to use standard ruby allocators and initializers.
|
214
|
+
|
215
|
+
* Update HTML parser to be more forgiving of invalid documents.
|
216
|
+
|
217
|
+
* Update include paths for Darwin Ports on OS X.
|
218
|
+
|
219
|
+
* Updated C code base to use BSD/Allman style
|
220
|
+
|
221
|
+
|
222
|
+
== 0.9.4 / 2008-11-24 Charlie Savage
|
223
|
+
|
224
|
+
* Update HTML parser so that it can read files, strings and io
|
225
|
+
streams.
|
226
|
+
|
227
|
+
* Update HTML parser to support user specified encodings.
|
228
|
+
|
229
|
+
* Additional C code cleanup.
|
230
|
+
|
231
|
+
== 0.9.3 / 2008-11-22 Charlie Savage
|
232
|
+
|
233
|
+
* Fixed segmentation fault caused by documents being freed
|
234
|
+
before xpath results that referenced the document (take 2).
|
235
|
+
|
236
|
+
* Allowed sax parser to use io stream
|
237
|
+
|
238
|
+
* Combined encoding and input classes
|
239
|
+
|
240
|
+
* Cleaned up C code - removed remaining legacy structures,
|
241
|
+
added static to most methods, changed C namespace from ruby_xml
|
242
|
+
to rxml
|
243
|
+
|
244
|
+
== 0.9.2 / 2008-11-19 Charlie Savage
|
245
|
+
|
246
|
+
* Add support for compiled XPath expressions (donated by Pavel Valodzka)
|
247
|
+
|
248
|
+
* Fixes for compiling on OS X 10.5.4 and 10.5.5
|
249
|
+
|
250
|
+
== 0.9.1 / 2008-11-18 Charlie Savage
|
251
|
+
|
252
|
+
* Expose LibXML's encoding support via a new Encoding object.
|
253
|
+
|
254
|
+
* Revamp error handling to be much easier to use. Errors are now
|
255
|
+
wrapped by the new XML::Error class and are thrown as exceptions
|
256
|
+
when it is appropriate.
|
257
|
+
|
258
|
+
* Fixed segmentation fault caused by documents being freed
|
259
|
+
before xpath results that referenced the document.
|
260
|
+
|
261
|
+
* Add Node#register_default_namespace to simplify default namespace handling.
|
262
|
+
|
263
|
+
* Significantly improve documentation
|
264
|
+
|
265
|
+
* A number of bug fixes and patches.
|
266
|
+
|
267
|
+
== 0.9.0 / 2008-11-18 Charlie Savage
|
268
|
+
|
269
|
+
* Version 0.9.0 was removed due to packaging errors.
|
270
|
+
|
271
|
+
|
272
|
+
== 0.8.3 / 2008-07-21 Charlie Savage
|
273
|
+
|
274
|
+
* Missed several files in last release
|
275
|
+
|
276
|
+
== 0.8.2 / 2008-07-21 Charlie Savage
|
277
|
+
|
278
|
+
* To use LibXML you can either require 'xml' or require 'libxml'.
|
279
|
+
The differences is that require 'xml' mixes the LibXML module into
|
280
|
+
the global namespace, thereby allowing you to write code such
|
281
|
+
as document = XML::Document.new. Note that this is different
|
282
|
+
from 0.8.0 and 0.8.1 and may require updating your code.
|
283
|
+
|
284
|
+
* Support RelaxNG validation (thanks to Morus Walter)
|
285
|
+
|
286
|
+
* Support passing IO objects to XmlReaders (thanks to Tom Hughes)
|
287
|
+
|
288
|
+
* Fix segmentation fault caused by adding an attribute to a CDATA node
|
289
|
+
|
290
|
+
* Moved node checking functions from C to Ruby
|
291
|
+
|
292
|
+
* Improved Windows support - libxml-ruby should now work out of the box.
|
293
|
+
|
294
|
+
* Improved Windows support - turned on libxml's zlib and iconv support.
|
295
|
+
|
296
|
+
|
297
|
+
== 0.8.1 / 2008-07-09 Charlie Savage
|
298
|
+
|
299
|
+
* Reimplmented Node#each_attr for backwards compatability
|
300
|
+
|
301
|
+
* Moved node type test to Ruby.
|
302
|
+
|
303
|
+
|
304
|
+
== 0.8.0 / 2008-07-09 Charlie Savage
|
305
|
+
|
306
|
+
* Fixed bug in returning attributes from XPath results
|
307
|
+
|
308
|
+
* Fixed DOM traversal methods
|
309
|
+
|
310
|
+
* Changed Node#children to return an array of nodes
|
311
|
+
|
312
|
+
* Fixed bug in returning attributes from XPath results
|
313
|
+
|
314
|
+
* Refactored XPath support, providing more user hooks in the XPath::Context class
|
315
|
+
|
316
|
+
* Added Node#properties for backwards compatibility
|
317
|
+
|
318
|
+
* Updated setup.rb
|
319
|
+
|
320
|
+
* Added more tests
|
321
|
+
|
322
|
+
* Updated rdocs and README file
|
323
|
+
|
324
|
+
* Moved libxml into LibXML namespace
|
325
|
+
|
326
|
+
|
327
|
+
== 0.7.0 / 2008-07-09 Charlie Savage
|
328
|
+
|
329
|
+
* Added new attributes class to provide a more natural way of working with attributes
|
330
|
+
|
331
|
+
* Fixed XML::Attr to better support namespaces
|
332
|
+
|
333
|
+
* Added documentation on how to use namespaces with XPath
|
334
|
+
|
335
|
+
* Removed allocation of extraneous structures used to wrap nodes, namespaces and attributes
|
336
|
+
|
337
|
+
* Cleaned up tests and added new test suite
|
338
|
+
|
339
|
+
* Updated rdocs and README file
|
340
|
+
|
341
|
+
* Cleaned out most of the bug list
|
342
|
+
|
343
|
+
|
344
|
+
== 0.6.0 / 2008-07-01 Charlie Savage
|
345
|
+
|
346
|
+
* 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.
|
347
|
+
|
348
|
+
* Fixed segmentation fault in xml reader expand (same xml tree freed twice)
|
349
|
+
|
350
|
+
* Applied a number of patches from Tom Bagby, including fixes for xpath segmentation faults and fixes for various memory leaks
|
351
|
+
|
352
|
+
* Cleaned up a number of compiler warnings
|
353
|
+
|
354
|
+
* 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.
|
355
|
+
|
356
|
+
* Added rake files for building with MingW
|
357
|
+
|
358
|
+
* 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.
|
359
|
+
|
360
|
+
* Cleaned up the tests and added a few more based on bug reports from the Tracker and mailing list.
|
361
|
+
|
362
|
+
* Cleaned out the patch queue and went through about 1/2 the bug list
|
363
|
+
|
364
|
+
|
365
|
+
=== 2007-11-16 "Dan Janowski" <danj at 3skel.com>
|
366
|
+
|
367
|
+
* Merged Dan's MEM2 branch to trunk.
|
368
|
+
|
369
|
+
== 0.5.3 /
|
370
|
+
|
371
|
+
=== 2007-11-16 "Dan Janowski" <danj at 3skel.com>
|
372
|
+
|
373
|
+
* Merged Dan's MEM2 branch to trunk.
|
374
|
+
|
375
|
+
|
376
|
+
== 0.5.2 / 2007-10-10
|
377
|
+
|
378
|
+
=== 2007-10-10 "Dan Janowski" <danj at 3skel.com>
|
379
|
+
|
380
|
+
* (Dan, fill in the major points of the changes you made up to here -thanks)
|
381
|
+
|
382
|
+
=== 2007-01-14 "Laurent Sansonetti" <lrz at chopine.be>
|
383
|
+
|
384
|
+
* Added some preliminary RDoc comments for XML::Reader.
|
385
|
+
|
386
|
+
=== 2006-12-05 "Laurent Sansonetti" <lrz at chopine.be>
|
387
|
+
|
388
|
+
* Added XML::Reader, a set of bindings to the xmlTextReader API.
|
389
|
+
|
390
|
+
|
391
|
+
== 0.3.8.4 / 2006-12-02
|
392
|
+
|
393
|
+
=== 2006-04-15 "Ross Bamform" <rosco at roscopeco.co.uk>
|
394
|
+
|
395
|
+
* Implemented SAX parser callback handling.
|
396
|
+
|
397
|
+
=== 2006-04-12 "Ross Bamford" <rosco at roscopeco.co.uk>
|
398
|
+
|
399
|
+
* Integrated and tested community patches.
|
400
|
+
* Defined XML::Node (hash) equality in terms of XML representation.
|
401
|
+
|
402
|
+
=== 2006-04-12 "Tim Yamin" <plasmaroo at gentoo.org>
|
403
|
+
|
404
|
+
* Fixed XML::Node#content inoperable bug (plasmaroo) [patch]
|
405
|
+
* Fixed memory leak in same
|
406
|
+
|
407
|
+
=== 2006-04-12 "Mark Van Holstyn" <mvette13 at gmail.com>
|
408
|
+
|
409
|
+
* Added XML::Node::Set#first (mvette13) [patch]
|
410
|
+
* Added XML::Node::Set#empty?
|
411
|
+
* Fixed XML::Node::Set#to_a
|
412
|
+
* Added XML::Node#find_first
|
413
|
+
* Added XML::Node#remove!
|
414
|
+
|
415
|
+
=== 2006-03-27 "Ross Bamford" <rosco at roscopeco.co.uk>
|
416
|
+
|
417
|
+
* Integrated contributed XML::Parser.register_error_handler patch (rosco)
|
418
|
+
|
419
|
+
=== 2006-02-27 "Ross Bamford" <rosco at roscopeco.co.uk>
|
420
|
+
|
421
|
+
* Fixed all multiple symbol definitions for -fno-common.
|
422
|
+
* Removed OSX -fno-common workaround.
|
423
|
+
|
424
|
+
|
425
|
+
== 0.3.6 / 2006-02-23
|
426
|
+
|
427
|
+
=== 2006-02-21 "Ross Bamford" <rosco at roscopeco.co.uk>
|
428
|
+
|
429
|
+
* Patched extconf.rb with OSX -fno-common workaround
|
430
|
+
* Added gem and packaging support to Rakefile
|
431
|
+
* Moved version update to Rakefile
|
432
|
+
* Removed legacy project utility scripts
|
433
|
+
|
434
|
+
=== 2005-02-19 "Ross Bamford" <rosco at roscopeco.co.uk>
|
435
|
+
|
436
|
+
* Fixed doublefree bug in ruby_xml_attr.
|
437
|
+
* Fixed small leak in parser
|
438
|
+
|
439
|
+
=== 2005-12-18 "Ross Bamford" <rosco at roscopeco.co.uk>
|
440
|
+
|
441
|
+
* Updated for GCC 4.0 (community patches)
|
442
|
+
* Fixed default validation bug
|
443
|
+
* Refactored project, removed outdated files, cleaned up tests.
|
444
|
+
* Added RDoc documentation across .c files.
|
445
|
+
* Fixed up a few strings.
|
446
|
+
|
447
|
+
=== 2004-04-04 "Mangler Jurgen" <et@wkv.at>
|
448
|
+
|
449
|
+
* ruby_xml_node.cz: fixed ruby_xml_node_property_set. The ill-behaviour
|
450
|
+
was, that there was added a second attribute of the same
|
451
|
+
name, when you were setting the value of an already existing
|
452
|
+
attribute.
|
453
|
+
|
454
|
+
=== 2004-03-17 "Lukas Svoboda" <luks@fi.muni.cz>
|
455
|
+
|
456
|
+
* ruby_xml_node.c: ruby_xml_node_to_s now returns XML subtree dump.
|
457
|
+
|
458
|
+
=== 2004-02-27 "Martin Povolny" <martin@solnet.cz>
|
459
|
+
|
460
|
+
* ruby_xml_node.c: added XML::Node.copy, this makes possible building
|
461
|
+
of xml documents from nodes taken from other xml documents
|
462
|
+
without making ruby SIGSEGV (see tests/copy_bug.rb).
|
463
|
+
|
464
|
+
=== 2004-02-26 "Martin Povolny" <martin@solnet.cz>
|
465
|
+
|
466
|
+
* ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
|
467
|
+
more work on validation, now you can actually validate
|
468
|
+
document using dtd or xml schema, also solved warning and
|
469
|
+
error propagation (see tests/{dtd|schema}-test.rb).
|
470
|
+
|
471
|
+
=== 2003-12-30 "Martin Povolny" <martin@solnet.cz>
|
472
|
+
|
473
|
+
* ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
|
474
|
+
prelimitary support for dtd and schema validation
|
475
|
+
|
476
|
+
=== 2003-09-15 "Martin Povolny" <martin@solnet.cz>
|
477
|
+
|
478
|
+
* ruby_xml_input_cbg.c, libxml.c: added class InputCallbacks to make
|
479
|
+
possible registering custom input callbacks
|
480
|
+
handlers (xmlRegisterInputCallbacks) written in ruby
|
481
|
+
|
482
|
+
=== 2003-08-01 "Martin Povolny" <martin@solnet.cz>
|
483
|
+
|
484
|
+
* ruby_xml_document.c: corrected argument handling in ruby_xml_document_find
|
485
|
+
* ruby_xml_node.c: corrected argument handling in ruby_xml_node_find
|
486
|
+
|
487
|
+
|
488
|
+
|