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.
- 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/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
@@ -0,0 +1,111 @@
|
|
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>Class: XML::Node::SetNamespace</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XML::Node::SetNamespace</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/ext/libxml/ruby_xml_node_c.html">
|
59
|
+
ext/libxml/ruby_xml_node.c
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
eXMLError
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if method_list -->
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="validator-badges">
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</body>
|
111
|
+
</html>
|
@@ -0,0 +1,111 @@
|
|
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>Class: XML::Node::UnknownType</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XML::Node::UnknownType</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/ext/libxml/ruby_xml_node_c.html">
|
59
|
+
ext/libxml/ruby_xml_node.c
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
eXMLError
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if method_list -->
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="validator-badges">
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</body>
|
111
|
+
</html>
|
@@ -0,0 +1,2178 @@
|
|
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>Class: XML::Parser</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>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XML::Parser</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
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000020">catalog_dump</a>
|
90
|
+
<a href="#M000021">catalog_remove</a>
|
91
|
+
<a href="#M000022">check_lib_versions</a>
|
92
|
+
<a href="#M000058">context</a>
|
93
|
+
<a href="#M000023">debug_entities</a>
|
94
|
+
<a href="#M000024">debug_entities=</a>
|
95
|
+
<a href="#M000025">default_compression</a>
|
96
|
+
<a href="#M000026">default_compression=</a>
|
97
|
+
<a href="#M000027">default_keep_blanks</a>
|
98
|
+
<a href="#M000028">default_keep_blanks=</a>
|
99
|
+
<a href="#M000031">default_line_numbers</a>
|
100
|
+
<a href="#M000032">default_line_numbers=</a>
|
101
|
+
<a href="#M000029">default_load_external_dtd</a>
|
102
|
+
<a href="#M000030">default_load_external_dtd=</a>
|
103
|
+
<a href="#M000033">default_pedantic_parser</a>
|
104
|
+
<a href="#M000034">default_pedantic_parser=</a>
|
105
|
+
<a href="#M000035">default_substitute_entities</a>
|
106
|
+
<a href="#M000036">default_substitute_entities=</a>
|
107
|
+
<a href="#M000037">default_tree_indent_string</a>
|
108
|
+
<a href="#M000038">default_tree_indent_string=</a>
|
109
|
+
<a href="#M000039">default_validity_checking</a>
|
110
|
+
<a href="#M000040">default_validity_checking=</a>
|
111
|
+
<a href="#M000041">default_warnings</a>
|
112
|
+
<a href="#M000042">default_warnings=</a>
|
113
|
+
<a href="#M000002">enabled_automata?</a>
|
114
|
+
<a href="#M000003">enabled_c14n?</a>
|
115
|
+
<a href="#M000004">enabled_catalog?</a>
|
116
|
+
<a href="#M000005">enabled_debug?</a>
|
117
|
+
<a href="#M000006">enabled_docbook?</a>
|
118
|
+
<a href="#M000007">enabled_ftp?</a>
|
119
|
+
<a href="#M000009">enabled_html?</a>
|
120
|
+
<a href="#M000008">enabled_http?</a>
|
121
|
+
<a href="#M000010">enabled_iconv?</a>
|
122
|
+
<a href="#M000011">enabled_memory_debug?</a>
|
123
|
+
<a href="#M000012">enabled_regexp?</a>
|
124
|
+
<a href="#M000013">enabled_schemas?</a>
|
125
|
+
<a href="#M000014">enabled_thread?</a>
|
126
|
+
<a href="#M000015">enabled_unicode?</a>
|
127
|
+
<a href="#M000016">enabled_xinclude?</a>
|
128
|
+
<a href="#M000017">enabled_xpath?</a>
|
129
|
+
<a href="#M000018">enabled_xpointer?</a>
|
130
|
+
<a href="#M000019">enabled_zlib?</a>
|
131
|
+
<a href="#M000043">features</a>
|
132
|
+
<a href="#M000044">file</a>
|
133
|
+
<a href="#M000053">filename</a>
|
134
|
+
<a href="#M000054">filename=</a>
|
135
|
+
<a href="#M000045">indent_tree_output</a>
|
136
|
+
<a href="#M000046">indent_tree_output=</a>
|
137
|
+
<a href="#M000055">io</a>
|
138
|
+
<a href="#M000047">io</a>
|
139
|
+
<a href="#M000056">io=</a>
|
140
|
+
<a href="#M000048">memory_dump</a>
|
141
|
+
<a href="#M000049">memory_used</a>
|
142
|
+
<a href="#M000050">new</a>
|
143
|
+
<a href="#M000057">parse</a>
|
144
|
+
<a href="#M000052">register_error_handler</a>
|
145
|
+
<a href="#M000059">string</a>
|
146
|
+
<a href="#M000051">string</a>
|
147
|
+
<a href="#M000060">string=</a>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<!-- if includes -->
|
155
|
+
|
156
|
+
<div id="section">
|
157
|
+
|
158
|
+
<div id="class-list">
|
159
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
160
|
+
|
161
|
+
Class <a href="Parser/Context.html" class="link">XML::Parser::Context</a><br />
|
162
|
+
Class <a href="Parser/ParseError.html" class="link">XML::Parser::ParseError</a><br />
|
163
|
+
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div id="constants-list">
|
167
|
+
<h3 class="section-bar">Constants</h3>
|
168
|
+
|
169
|
+
<div class="name-list">
|
170
|
+
<table summary="Constants">
|
171
|
+
<tr class="top-aligned-row context-row">
|
172
|
+
<td class="context-item-name">LIBXML_VERSION</td>
|
173
|
+
<td>=</td>
|
174
|
+
<td class="context-item-value">rb_str_new2(LIBXML_DOTTED_VERSION)</td>
|
175
|
+
<td width="3em"> </td>
|
176
|
+
<td class="context-item-desc">
|
177
|
+
Constants
|
178
|
+
|
179
|
+
</td>
|
180
|
+
</tr>
|
181
|
+
<tr class="top-aligned-row context-row">
|
182
|
+
<td class="context-item-name">VERSION</td>
|
183
|
+
<td>=</td>
|
184
|
+
<td class="context-item-value">rb_str_new2(RUBY_LIBXML_VERSION)</td>
|
185
|
+
</tr>
|
186
|
+
<tr class="top-aligned-row context-row">
|
187
|
+
<td class="context-item-name">VERNUM</td>
|
188
|
+
<td>=</td>
|
189
|
+
<td class="context-item-value">INT2NUM(RUBY_LIBXML_VERNUM)</td>
|
190
|
+
</tr>
|
191
|
+
</table>
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<!-- if method_list -->
|
201
|
+
<div id="methods">
|
202
|
+
<h3 class="section-bar">Public Class methods</h3>
|
203
|
+
|
204
|
+
<div id="method-M000020" class="method-detail">
|
205
|
+
<a name="M000020"></a>
|
206
|
+
|
207
|
+
<div class="method-heading">
|
208
|
+
<a href="#M000020" class="method-signature">
|
209
|
+
<span class="method-name">XML::Parser.catalog_dump → true<br />
|
210
|
+
</span>
|
211
|
+
</a>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
<div class="method-description">
|
215
|
+
<p>
|
216
|
+
Dump the parser resource catalogs to stdout.
|
217
|
+
</p>
|
218
|
+
<p><a class="source-toggle" href="#"
|
219
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
220
|
+
<div class="method-source-code" id="M000020-source">
|
221
|
+
<pre>
|
222
|
+
/*
|
223
|
+
* call-seq:
|
224
|
+
* XML::Parser.catalog_dump -> true
|
225
|
+
*
|
226
|
+
* Dump the parser resource catalogs to stdout.
|
227
|
+
*/
|
228
|
+
VALUE
|
229
|
+
ruby_xml_parser_catalog_dump(VALUE self) {
|
230
|
+
|
231
|
+
</pre>
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
<div id="method-M000021" class="method-detail">
|
237
|
+
<a name="M000021"></a>
|
238
|
+
|
239
|
+
<div class="method-heading">
|
240
|
+
<a href="#M000021" class="method-signature">
|
241
|
+
<span class="method-name">XML::Parser.catalog_remove(catalog) → true<br />
|
242
|
+
</span>
|
243
|
+
</a>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div class="method-description">
|
247
|
+
<p>
|
248
|
+
Remove the specified resource catalog.
|
249
|
+
</p>
|
250
|
+
<p><a class="source-toggle" href="#"
|
251
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000021-source">
|
253
|
+
<pre>
|
254
|
+
/*
|
255
|
+
* call-seq:
|
256
|
+
* XML::Parser.catalog_remove(catalog) -> true
|
257
|
+
*
|
258
|
+
* Remove the specified resource catalog.
|
259
|
+
*/
|
260
|
+
VALUE
|
261
|
+
ruby_xml_parser_catalog_remove(VALUE self, VALUE cat) {
|
262
|
+
|
263
|
+
</pre>
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
<div id="method-M000022" class="method-detail">
|
269
|
+
<a name="M000022"></a>
|
270
|
+
|
271
|
+
<div class="method-heading">
|
272
|
+
<a href="#M000022" class="method-signature">
|
273
|
+
<span class="method-name">XML::Parser.check_lib_versions → true <br />
|
274
|
+
</span>
|
275
|
+
</a>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
<div class="method-description">
|
279
|
+
<p>
|
280
|
+
Check LIBXML version matches version the bindings were compiled to. Throws
|
281
|
+
an exception if not.
|
282
|
+
</p>
|
283
|
+
<p><a class="source-toggle" href="#"
|
284
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
285
|
+
<div class="method-source-code" id="M000022-source">
|
286
|
+
<pre>
|
287
|
+
/*
|
288
|
+
* call-seq:
|
289
|
+
* XML::Parser.check_lib_versions -> true
|
290
|
+
*
|
291
|
+
* Check LIBXML version matches version the bindings
|
292
|
+
* were compiled to. Throws an exception if not.
|
293
|
+
*/
|
294
|
+
VALUE
|
295
|
+
ruby_xml_parser_check_lib_versions(VALUE class) {
|
296
|
+
|
297
|
+
</pre>
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div id="method-M000023" class="method-detail">
|
303
|
+
<a name="M000023"></a>
|
304
|
+
|
305
|
+
<div class="method-heading">
|
306
|
+
<a href="#M000023" class="method-signature">
|
307
|
+
<span class="method-name">XML::Parser.debug_entities → (true|false)<br />
|
308
|
+
</span>
|
309
|
+
</a>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
<div class="method-description">
|
313
|
+
<p>
|
314
|
+
Determine whether included-entity debugging is enabled. (Requires Libxml to
|
315
|
+
be compiled with debugging support)
|
316
|
+
</p>
|
317
|
+
<p><a class="source-toggle" href="#"
|
318
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
319
|
+
<div class="method-source-code" id="M000023-source">
|
320
|
+
<pre>
|
321
|
+
/*
|
322
|
+
* call-seq:
|
323
|
+
* XML::Parser.debug_entities -> (true|false)
|
324
|
+
*
|
325
|
+
* Determine whether included-entity debugging is enabled.
|
326
|
+
* (Requires Libxml to be compiled with debugging support)
|
327
|
+
*/
|
328
|
+
VALUE
|
329
|
+
ruby_xml_parser_debug_entities_get(VALUE class) {
|
330
|
+
|
331
|
+
</pre>
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
<div id="method-M000024" class="method-detail">
|
337
|
+
<a name="M000024"></a>
|
338
|
+
|
339
|
+
<div class="method-heading">
|
340
|
+
<a href="#M000024" class="method-signature">
|
341
|
+
<span class="method-name">XML::Parser.debug_entities = true|false<br />
|
342
|
+
</span>
|
343
|
+
</a>
|
344
|
+
</div>
|
345
|
+
|
346
|
+
<div class="method-description">
|
347
|
+
<p>
|
348
|
+
Enable or disable included-entity debugging. (Requires Libxml to be
|
349
|
+
compiled with debugging support)
|
350
|
+
</p>
|
351
|
+
<p><a class="source-toggle" href="#"
|
352
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
353
|
+
<div class="method-source-code" id="M000024-source">
|
354
|
+
<pre>
|
355
|
+
/*
|
356
|
+
* call-seq:
|
357
|
+
* XML::Parser.debug_entities = true|false
|
358
|
+
*
|
359
|
+
* Enable or disable included-entity debugging.
|
360
|
+
* (Requires Libxml to be compiled with debugging support)
|
361
|
+
*/
|
362
|
+
VALUE
|
363
|
+
ruby_xml_parser_debug_entities_set(VALUE class, VALUE bool) {
|
364
|
+
|
365
|
+
</pre>
|
366
|
+
</div>
|
367
|
+
</div>
|
368
|
+
</div>
|
369
|
+
|
370
|
+
<div id="method-M000025" class="method-detail">
|
371
|
+
<a name="M000025"></a>
|
372
|
+
|
373
|
+
<div class="method-heading">
|
374
|
+
<a href="#M000025" class="method-signature">
|
375
|
+
<span class="method-name">XML::Parser.default_compression → (true|false)<br />
|
376
|
+
</span>
|
377
|
+
</a>
|
378
|
+
</div>
|
379
|
+
|
380
|
+
<div class="method-description">
|
381
|
+
<p>
|
382
|
+
Determine whether parsers use Zlib compression by default (requires libxml
|
383
|
+
to be compiled with Zlib support).
|
384
|
+
</p>
|
385
|
+
<p><a class="source-toggle" href="#"
|
386
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
387
|
+
<div class="method-source-code" id="M000025-source">
|
388
|
+
<pre>
|
389
|
+
/*
|
390
|
+
* call-seq:
|
391
|
+
* XML::Parser.default_compression -> (true|false)
|
392
|
+
*
|
393
|
+
* Determine whether parsers use Zlib compression by default
|
394
|
+
* (requires libxml to be compiled with Zlib support).
|
395
|
+
*/
|
396
|
+
VALUE
|
397
|
+
ruby_xml_parser_default_compression_get(VALUE class) {
|
398
|
+
|
399
|
+
</pre>
|
400
|
+
</div>
|
401
|
+
</div>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
<div id="method-M000026" class="method-detail">
|
405
|
+
<a name="M000026"></a>
|
406
|
+
|
407
|
+
<div class="method-heading">
|
408
|
+
<a href="#M000026" class="method-signature">
|
409
|
+
<span class="method-name">XML::Parser.default_compression = true|false<br />
|
410
|
+
</span>
|
411
|
+
</a>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div class="method-description">
|
415
|
+
<p>
|
416
|
+
Controls whether parsers use Zlib compression by default (requires libxml
|
417
|
+
to be compiled with Zlib support).
|
418
|
+
</p>
|
419
|
+
<p><a class="source-toggle" href="#"
|
420
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
421
|
+
<div class="method-source-code" id="M000026-source">
|
422
|
+
<pre>
|
423
|
+
/*
|
424
|
+
* call-seq:
|
425
|
+
* XML::Parser.default_compression = true|false
|
426
|
+
*
|
427
|
+
* Controls whether parsers use Zlib compression by default
|
428
|
+
* (requires libxml to be compiled with Zlib support).
|
429
|
+
*/
|
430
|
+
VALUE
|
431
|
+
ruby_xml_parser_default_compression_set(VALUE class, VALUE num) {
|
432
|
+
|
433
|
+
</pre>
|
434
|
+
</div>
|
435
|
+
</div>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
<div id="method-M000027" class="method-detail">
|
439
|
+
<a name="M000027"></a>
|
440
|
+
|
441
|
+
<div class="method-heading">
|
442
|
+
<a href="#M000027" class="method-signature">
|
443
|
+
<span class="method-name">XML::Parser.default_keep_blanks → (true|false)<br />
|
444
|
+
</span>
|
445
|
+
</a>
|
446
|
+
</div>
|
447
|
+
|
448
|
+
<div class="method-description">
|
449
|
+
<p>
|
450
|
+
Determine whether parsers retain whitespace by default.
|
451
|
+
</p>
|
452
|
+
<p><a class="source-toggle" href="#"
|
453
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
454
|
+
<div class="method-source-code" id="M000027-source">
|
455
|
+
<pre>
|
456
|
+
/*
|
457
|
+
* call-seq:
|
458
|
+
* XML::Parser.default_keep_blanks -> (true|false)
|
459
|
+
*
|
460
|
+
* Determine whether parsers retain whitespace by default.
|
461
|
+
*/
|
462
|
+
VALUE
|
463
|
+
ruby_xml_parser_default_keep_blanks_get(VALUE class) {
|
464
|
+
|
465
|
+
</pre>
|
466
|
+
</div>
|
467
|
+
</div>
|
468
|
+
</div>
|
469
|
+
|
470
|
+
<div id="method-M000028" class="method-detail">
|
471
|
+
<a name="M000028"></a>
|
472
|
+
|
473
|
+
<div class="method-heading">
|
474
|
+
<a href="#M000028" class="method-signature">
|
475
|
+
<span class="method-name">XML::Parser.default_keep_blanks = true|false<br />
|
476
|
+
</span>
|
477
|
+
</a>
|
478
|
+
</div>
|
479
|
+
|
480
|
+
<div class="method-description">
|
481
|
+
<p>
|
482
|
+
Controls whether parsers retain whitespace by default.
|
483
|
+
</p>
|
484
|
+
<p><a class="source-toggle" href="#"
|
485
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
486
|
+
<div class="method-source-code" id="M000028-source">
|
487
|
+
<pre>
|
488
|
+
/*
|
489
|
+
* call-seq:
|
490
|
+
* XML::Parser.default_keep_blanks = true|false
|
491
|
+
*
|
492
|
+
* Controls whether parsers retain whitespace by default.
|
493
|
+
*/
|
494
|
+
VALUE
|
495
|
+
ruby_xml_parser_default_keep_blanks_set(VALUE class, VALUE bool) {
|
496
|
+
|
497
|
+
</pre>
|
498
|
+
</div>
|
499
|
+
</div>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
<div id="method-M000031" class="method-detail">
|
503
|
+
<a name="M000031"></a>
|
504
|
+
|
505
|
+
<div class="method-heading">
|
506
|
+
<a href="#M000031" class="method-signature">
|
507
|
+
<span class="method-name">XML::Parser.default_line_numbers → (true|false)<br />
|
508
|
+
</span>
|
509
|
+
</a>
|
510
|
+
</div>
|
511
|
+
|
512
|
+
<div class="method-description">
|
513
|
+
<p>
|
514
|
+
Determine whether parsers retain line-numbers by default.
|
515
|
+
</p>
|
516
|
+
<p><a class="source-toggle" href="#"
|
517
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
518
|
+
<div class="method-source-code" id="M000031-source">
|
519
|
+
<pre>
|
520
|
+
/*
|
521
|
+
* call-seq:
|
522
|
+
* XML::Parser.default_line_numbers -> (true|false)
|
523
|
+
*
|
524
|
+
* Determine whether parsers retain line-numbers by default.
|
525
|
+
*/
|
526
|
+
VALUE
|
527
|
+
ruby_xml_parser_default_line_numbers_get(VALUE class) {
|
528
|
+
|
529
|
+
</pre>
|
530
|
+
</div>
|
531
|
+
</div>
|
532
|
+
</div>
|
533
|
+
|
534
|
+
<div id="method-M000032" class="method-detail">
|
535
|
+
<a name="M000032"></a>
|
536
|
+
|
537
|
+
<div class="method-heading">
|
538
|
+
<a href="#M000032" class="method-signature">
|
539
|
+
<span class="method-name">XML::Parser.default_line_numbers = true|false<br />
|
540
|
+
</span>
|
541
|
+
</a>
|
542
|
+
</div>
|
543
|
+
|
544
|
+
<div class="method-description">
|
545
|
+
<p>
|
546
|
+
Controls whether parsers retain line-numbers by default.
|
547
|
+
</p>
|
548
|
+
<p><a class="source-toggle" href="#"
|
549
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
550
|
+
<div class="method-source-code" id="M000032-source">
|
551
|
+
<pre>
|
552
|
+
/*
|
553
|
+
* call-seq:
|
554
|
+
* XML::Parser.default_line_numbers = true|false
|
555
|
+
*
|
556
|
+
* Controls whether parsers retain line-numbers by default.
|
557
|
+
*/
|
558
|
+
VALUE
|
559
|
+
ruby_xml_parser_default_line_numbers_set(VALUE class, VALUE bool) {
|
560
|
+
|
561
|
+
</pre>
|
562
|
+
</div>
|
563
|
+
</div>
|
564
|
+
</div>
|
565
|
+
|
566
|
+
<div id="method-M000029" class="method-detail">
|
567
|
+
<a name="M000029"></a>
|
568
|
+
|
569
|
+
<div class="method-heading">
|
570
|
+
<a href="#M000029" class="method-signature">
|
571
|
+
<span class="method-name">XML::Parser.default_load_external_dtd → (true|false)<br />
|
572
|
+
</span>
|
573
|
+
</a>
|
574
|
+
</div>
|
575
|
+
|
576
|
+
<div class="method-description">
|
577
|
+
<p>
|
578
|
+
Determine whether parsers load external DTDs by default.
|
579
|
+
</p>
|
580
|
+
<p><a class="source-toggle" href="#"
|
581
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
582
|
+
<div class="method-source-code" id="M000029-source">
|
583
|
+
<pre>
|
584
|
+
/*
|
585
|
+
* call-seq:
|
586
|
+
* XML::Parser.default_load_external_dtd -> (true|false)
|
587
|
+
*
|
588
|
+
* Determine whether parsers load external DTDs by default.
|
589
|
+
*/
|
590
|
+
VALUE
|
591
|
+
ruby_xml_parser_default_load_external_dtd_get(VALUE class) {
|
592
|
+
|
593
|
+
</pre>
|
594
|
+
</div>
|
595
|
+
</div>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div id="method-M000030" class="method-detail">
|
599
|
+
<a name="M000030"></a>
|
600
|
+
|
601
|
+
<div class="method-heading">
|
602
|
+
<a href="#M000030" class="method-signature">
|
603
|
+
<span class="method-name">XML::Parser.default_load_external_dtd = true|false<br />
|
604
|
+
</span>
|
605
|
+
</a>
|
606
|
+
</div>
|
607
|
+
|
608
|
+
<div class="method-description">
|
609
|
+
<p>
|
610
|
+
Controls whether parsers load external DTDs by default.
|
611
|
+
</p>
|
612
|
+
<p><a class="source-toggle" href="#"
|
613
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
614
|
+
<div class="method-source-code" id="M000030-source">
|
615
|
+
<pre>
|
616
|
+
/*
|
617
|
+
* call-seq:
|
618
|
+
* XML::Parser.default_load_external_dtd = true|false
|
619
|
+
*
|
620
|
+
* Controls whether parsers load external DTDs by default.
|
621
|
+
*/
|
622
|
+
VALUE
|
623
|
+
ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool) {
|
624
|
+
|
625
|
+
</pre>
|
626
|
+
</div>
|
627
|
+
</div>
|
628
|
+
</div>
|
629
|
+
|
630
|
+
<div id="method-M000033" class="method-detail">
|
631
|
+
<a name="M000033"></a>
|
632
|
+
|
633
|
+
<div class="method-heading">
|
634
|
+
<a href="#M000033" class="method-signature">
|
635
|
+
<span class="method-name">XML::Parser.default_pedantic_parser → (true|false)<br />
|
636
|
+
</span>
|
637
|
+
</a>
|
638
|
+
</div>
|
639
|
+
|
640
|
+
<div class="method-description">
|
641
|
+
<p>
|
642
|
+
Determine whether parsers are pedantic by default.
|
643
|
+
</p>
|
644
|
+
<p><a class="source-toggle" href="#"
|
645
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
646
|
+
<div class="method-source-code" id="M000033-source">
|
647
|
+
<pre>
|
648
|
+
/*
|
649
|
+
* call-seq:
|
650
|
+
* XML::Parser.default_pedantic_parser -> (true|false)
|
651
|
+
*
|
652
|
+
* Determine whether parsers are pedantic by default.
|
653
|
+
*/
|
654
|
+
VALUE
|
655
|
+
ruby_xml_parser_default_pedantic_parser_get(VALUE class) {
|
656
|
+
|
657
|
+
</pre>
|
658
|
+
</div>
|
659
|
+
</div>
|
660
|
+
</div>
|
661
|
+
|
662
|
+
<div id="method-M000034" class="method-detail">
|
663
|
+
<a name="M000034"></a>
|
664
|
+
|
665
|
+
<div class="method-heading">
|
666
|
+
<a href="#M000034" class="method-signature">
|
667
|
+
<span class="method-name">XML::Parser.default_pedantic_parser = true|false<br />
|
668
|
+
</span>
|
669
|
+
</a>
|
670
|
+
</div>
|
671
|
+
|
672
|
+
<div class="method-description">
|
673
|
+
<p>
|
674
|
+
Controls whether parsers are pedantic by default.
|
675
|
+
</p>
|
676
|
+
<p><a class="source-toggle" href="#"
|
677
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
678
|
+
<div class="method-source-code" id="M000034-source">
|
679
|
+
<pre>
|
680
|
+
/*
|
681
|
+
* call-seq:
|
682
|
+
* XML::Parser.default_pedantic_parser = true|false
|
683
|
+
*
|
684
|
+
* Controls whether parsers are pedantic by default.
|
685
|
+
*/
|
686
|
+
VALUE
|
687
|
+
ruby_xml_parser_default_pedantic_parser_set(VALUE class, VALUE bool) {
|
688
|
+
|
689
|
+
</pre>
|
690
|
+
</div>
|
691
|
+
</div>
|
692
|
+
</div>
|
693
|
+
|
694
|
+
<div id="method-M000035" class="method-detail">
|
695
|
+
<a name="M000035"></a>
|
696
|
+
|
697
|
+
<div class="method-heading">
|
698
|
+
<a href="#M000035" class="method-signature">
|
699
|
+
<span class="method-name">XML::Parser.default_substitute_entities → (true|false)<br />
|
700
|
+
</span>
|
701
|
+
</a>
|
702
|
+
</div>
|
703
|
+
|
704
|
+
<div class="method-description">
|
705
|
+
<p>
|
706
|
+
Determine whether parsers perform inline entity substitution (for external
|
707
|
+
entities) by default.
|
708
|
+
</p>
|
709
|
+
<p><a class="source-toggle" href="#"
|
710
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
711
|
+
<div class="method-source-code" id="M000035-source">
|
712
|
+
<pre>
|
713
|
+
/*
|
714
|
+
* call-seq:
|
715
|
+
* XML::Parser.default_substitute_entities -> (true|false)
|
716
|
+
*
|
717
|
+
* Determine whether parsers perform inline entity substitution
|
718
|
+
* (for external entities) by default.
|
719
|
+
*/
|
720
|
+
VALUE
|
721
|
+
ruby_xml_parser_default_substitute_entities_get(VALUE class) {
|
722
|
+
|
723
|
+
</pre>
|
724
|
+
</div>
|
725
|
+
</div>
|
726
|
+
</div>
|
727
|
+
|
728
|
+
<div id="method-M000036" class="method-detail">
|
729
|
+
<a name="M000036"></a>
|
730
|
+
|
731
|
+
<div class="method-heading">
|
732
|
+
<a href="#M000036" class="method-signature">
|
733
|
+
<span class="method-name">XML::Parser.default_substitute_entities = true|false<br />
|
734
|
+
</span>
|
735
|
+
</a>
|
736
|
+
</div>
|
737
|
+
|
738
|
+
<div class="method-description">
|
739
|
+
<p>
|
740
|
+
Controls whether parsers perform inline entity substitution (for external
|
741
|
+
entities) by default.
|
742
|
+
</p>
|
743
|
+
<p><a class="source-toggle" href="#"
|
744
|
+
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
745
|
+
<div class="method-source-code" id="M000036-source">
|
746
|
+
<pre>
|
747
|
+
/*
|
748
|
+
* call-seq:
|
749
|
+
* XML::Parser.default_substitute_entities = true|false
|
750
|
+
*
|
751
|
+
* Controls whether parsers perform inline entity substitution
|
752
|
+
* (for external entities) by default.
|
753
|
+
*/
|
754
|
+
VALUE
|
755
|
+
ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool) {
|
756
|
+
|
757
|
+
</pre>
|
758
|
+
</div>
|
759
|
+
</div>
|
760
|
+
</div>
|
761
|
+
|
762
|
+
<div id="method-M000037" class="method-detail">
|
763
|
+
<a name="M000037"></a>
|
764
|
+
|
765
|
+
<div class="method-heading">
|
766
|
+
<a href="#M000037" class="method-signature">
|
767
|
+
<span class="method-name">XML::Parser.default_tree_indent_string → "string"<br />
|
768
|
+
</span>
|
769
|
+
</a>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
<div class="method-description">
|
773
|
+
<p>
|
774
|
+
Obtain the default string used by parsers to indent the <a
|
775
|
+
href="../XML.html">XML</a> tree for output.
|
776
|
+
</p>
|
777
|
+
<p><a class="source-toggle" href="#"
|
778
|
+
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
779
|
+
<div class="method-source-code" id="M000037-source">
|
780
|
+
<pre>
|
781
|
+
/*
|
782
|
+
* call-seq:
|
783
|
+
* XML::Parser.default_tree_indent_string -> "string"
|
784
|
+
*
|
785
|
+
* Obtain the default string used by parsers to indent the XML tree
|
786
|
+
* for output.
|
787
|
+
*/
|
788
|
+
VALUE
|
789
|
+
ruby_xml_parser_default_tree_indent_string_get(VALUE class) {
|
790
|
+
|
791
|
+
</pre>
|
792
|
+
</div>
|
793
|
+
</div>
|
794
|
+
</div>
|
795
|
+
|
796
|
+
<div id="method-M000038" class="method-detail">
|
797
|
+
<a name="M000038"></a>
|
798
|
+
|
799
|
+
<div class="method-heading">
|
800
|
+
<a href="#M000038" class="method-signature">
|
801
|
+
<span class="method-name">XML::Parser.default_tree_indent_string = "string"<br />
|
802
|
+
</span>
|
803
|
+
</a>
|
804
|
+
</div>
|
805
|
+
|
806
|
+
<div class="method-description">
|
807
|
+
<p>
|
808
|
+
Set the default string used by parsers to indent the <a
|
809
|
+
href="../XML.html">XML</a> tree for output.
|
810
|
+
</p>
|
811
|
+
<p><a class="source-toggle" href="#"
|
812
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
813
|
+
<div class="method-source-code" id="M000038-source">
|
814
|
+
<pre>
|
815
|
+
/*
|
816
|
+
* call-seq:
|
817
|
+
* XML::Parser.default_tree_indent_string = "string"
|
818
|
+
*
|
819
|
+
* Set the default string used by parsers to indent the XML tree
|
820
|
+
* for output.
|
821
|
+
*/
|
822
|
+
VALUE
|
823
|
+
ruby_xml_parser_default_tree_indent_string_set(VALUE class, VALUE string) {
|
824
|
+
|
825
|
+
</pre>
|
826
|
+
</div>
|
827
|
+
</div>
|
828
|
+
</div>
|
829
|
+
|
830
|
+
<div id="method-M000039" class="method-detail">
|
831
|
+
<a name="M000039"></a>
|
832
|
+
|
833
|
+
<div class="method-heading">
|
834
|
+
<a href="#M000039" class="method-signature">
|
835
|
+
<span class="method-name">XML::Parser.default_validity_checking → (true|false)<br />
|
836
|
+
</span>
|
837
|
+
</a>
|
838
|
+
</div>
|
839
|
+
|
840
|
+
<div class="method-description">
|
841
|
+
<p>
|
842
|
+
Determine whether parsers perform <a href="../XML.html">XML</a> validation
|
843
|
+
by default.
|
844
|
+
</p>
|
845
|
+
<p><a class="source-toggle" href="#"
|
846
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
847
|
+
<div class="method-source-code" id="M000039-source">
|
848
|
+
<pre>
|
849
|
+
/*
|
850
|
+
* call-seq:
|
851
|
+
* XML::Parser.default_validity_checking -> (true|false)
|
852
|
+
*
|
853
|
+
* Determine whether parsers perform XML validation by default.
|
854
|
+
*/
|
855
|
+
VALUE
|
856
|
+
ruby_xml_parser_default_validity_checking_get(VALUE class) {
|
857
|
+
|
858
|
+
</pre>
|
859
|
+
</div>
|
860
|
+
</div>
|
861
|
+
</div>
|
862
|
+
|
863
|
+
<div id="method-M000040" class="method-detail">
|
864
|
+
<a name="M000040"></a>
|
865
|
+
|
866
|
+
<div class="method-heading">
|
867
|
+
<a href="#M000040" class="method-signature">
|
868
|
+
<span class="method-name">XML::Parser.default_validity_checking = true|false<br />
|
869
|
+
</span>
|
870
|
+
</a>
|
871
|
+
</div>
|
872
|
+
|
873
|
+
<div class="method-description">
|
874
|
+
<p>
|
875
|
+
Controls whether parsers perform <a href="../XML.html">XML</a> validation
|
876
|
+
by default.
|
877
|
+
</p>
|
878
|
+
<p><a class="source-toggle" href="#"
|
879
|
+
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
880
|
+
<div class="method-source-code" id="M000040-source">
|
881
|
+
<pre>
|
882
|
+
/*
|
883
|
+
* call-seq:
|
884
|
+
* XML::Parser.default_validity_checking = true|false
|
885
|
+
*
|
886
|
+
* Controls whether parsers perform XML validation by default.
|
887
|
+
*/
|
888
|
+
VALUE
|
889
|
+
ruby_xml_parser_default_validity_checking_set(VALUE class, VALUE bool) {
|
890
|
+
|
891
|
+
</pre>
|
892
|
+
</div>
|
893
|
+
</div>
|
894
|
+
</div>
|
895
|
+
|
896
|
+
<div id="method-M000041" class="method-detail">
|
897
|
+
<a name="M000041"></a>
|
898
|
+
|
899
|
+
<div class="method-heading">
|
900
|
+
<a href="#M000041" class="method-signature">
|
901
|
+
<span class="method-name">XML::Parser.default_warnings → (true|false)<br />
|
902
|
+
</span>
|
903
|
+
</a>
|
904
|
+
</div>
|
905
|
+
|
906
|
+
<div class="method-description">
|
907
|
+
<p>
|
908
|
+
Determine whether parsers output warnings by default.
|
909
|
+
</p>
|
910
|
+
<p><a class="source-toggle" href="#"
|
911
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
912
|
+
<div class="method-source-code" id="M000041-source">
|
913
|
+
<pre>
|
914
|
+
/*
|
915
|
+
* call-seq:
|
916
|
+
* XML::Parser.default_warnings -> (true|false)
|
917
|
+
*
|
918
|
+
* Determine whether parsers output warnings by default.
|
919
|
+
*/
|
920
|
+
VALUE
|
921
|
+
ruby_xml_parser_default_warnings_get(VALUE class) {
|
922
|
+
|
923
|
+
</pre>
|
924
|
+
</div>
|
925
|
+
</div>
|
926
|
+
</div>
|
927
|
+
|
928
|
+
<div id="method-M000042" class="method-detail">
|
929
|
+
<a name="M000042"></a>
|
930
|
+
|
931
|
+
<div class="method-heading">
|
932
|
+
<a href="#M000042" class="method-signature">
|
933
|
+
<span class="method-name">XML::Parser.default_warnings = true|false<br />
|
934
|
+
</span>
|
935
|
+
</a>
|
936
|
+
</div>
|
937
|
+
|
938
|
+
<div class="method-description">
|
939
|
+
<p>
|
940
|
+
Controls whether parsers output warnings by default.
|
941
|
+
</p>
|
942
|
+
<p><a class="source-toggle" href="#"
|
943
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
944
|
+
<div class="method-source-code" id="M000042-source">
|
945
|
+
<pre>
|
946
|
+
/*
|
947
|
+
* call-seq:
|
948
|
+
* XML::Parser.default_warnings = true|false
|
949
|
+
*
|
950
|
+
* Controls whether parsers output warnings by default.
|
951
|
+
*/
|
952
|
+
VALUE
|
953
|
+
ruby_xml_parser_default_warnings_set(VALUE class, VALUE bool) {
|
954
|
+
|
955
|
+
</pre>
|
956
|
+
</div>
|
957
|
+
</div>
|
958
|
+
</div>
|
959
|
+
|
960
|
+
<div id="method-M000002" class="method-detail">
|
961
|
+
<a name="M000002"></a>
|
962
|
+
|
963
|
+
<div class="method-heading">
|
964
|
+
<a href="#M000002" class="method-signature">
|
965
|
+
<span class="method-name">XML::Parser.enabled_automata? → (true|false)<br />
|
966
|
+
</span>
|
967
|
+
</a>
|
968
|
+
</div>
|
969
|
+
|
970
|
+
<div class="method-description">
|
971
|
+
<p>
|
972
|
+
Determine whether libxml regexp automata support is enabled.
|
973
|
+
</p>
|
974
|
+
<p><a class="source-toggle" href="#"
|
975
|
+
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
976
|
+
<div class="method-source-code" id="M000002-source">
|
977
|
+
<pre>
|
978
|
+
/*
|
979
|
+
* call-seq:
|
980
|
+
* XML::Parser.enabled_automata? -> (true|false)
|
981
|
+
*
|
982
|
+
* Determine whether libxml regexp automata support is enabled.
|
983
|
+
*/
|
984
|
+
VALUE
|
985
|
+
ruby_xml_parser_enabled_automata_q(VALUE class) {
|
986
|
+
|
987
|
+
</pre>
|
988
|
+
</div>
|
989
|
+
</div>
|
990
|
+
</div>
|
991
|
+
|
992
|
+
<div id="method-M000003" class="method-detail">
|
993
|
+
<a name="M000003"></a>
|
994
|
+
|
995
|
+
<div class="method-heading">
|
996
|
+
<a href="#M000003" class="method-signature">
|
997
|
+
<span class="method-name">XML::Parser.enabled_c14n? → (true|false)<br />
|
998
|
+
</span>
|
999
|
+
</a>
|
1000
|
+
</div>
|
1001
|
+
|
1002
|
+
<div class="method-description">
|
1003
|
+
<p>
|
1004
|
+
Determine whether libxml ‘canonical <a
|
1005
|
+
href="../XML.html">XML</a>’ support is enabled. See "Canonical
|
1006
|
+
<a href="../XML.html">XML</a>" (<a
|
1007
|
+
href="http://www.w3.org/TR/xml-c14n">www.w3.org/TR/xml-c14n</a>)
|
1008
|
+
</p>
|
1009
|
+
<p><a class="source-toggle" href="#"
|
1010
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
1011
|
+
<div class="method-source-code" id="M000003-source">
|
1012
|
+
<pre>
|
1013
|
+
/*
|
1014
|
+
* call-seq:
|
1015
|
+
* XML::Parser.enabled_c14n? -> (true|false)
|
1016
|
+
*
|
1017
|
+
* Determine whether libxml 'canonical XML' support is enabled.
|
1018
|
+
* See "Canonical XML" (http://www.w3.org/TR/xml-c14n)
|
1019
|
+
*/
|
1020
|
+
VALUE
|
1021
|
+
ruby_xml_parser_enabled_c14n_q(VALUE class) {
|
1022
|
+
|
1023
|
+
</pre>
|
1024
|
+
</div>
|
1025
|
+
</div>
|
1026
|
+
</div>
|
1027
|
+
|
1028
|
+
<div id="method-M000004" class="method-detail">
|
1029
|
+
<a name="M000004"></a>
|
1030
|
+
|
1031
|
+
<div class="method-heading">
|
1032
|
+
<a href="#M000004" class="method-signature">
|
1033
|
+
<span class="method-name">XML::Parser.enabled_catalog? → (true|false) <br />
|
1034
|
+
</span>
|
1035
|
+
</a>
|
1036
|
+
</div>
|
1037
|
+
|
1038
|
+
<div class="method-description">
|
1039
|
+
<p>
|
1040
|
+
Determine whether libxml resource catalog support is enabled.
|
1041
|
+
</p>
|
1042
|
+
<p><a class="source-toggle" href="#"
|
1043
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
1044
|
+
<div class="method-source-code" id="M000004-source">
|
1045
|
+
<pre>
|
1046
|
+
/*
|
1047
|
+
* call-seq:
|
1048
|
+
* XML::Parser.enabled_catalog? -> (true|false)
|
1049
|
+
*
|
1050
|
+
* Determine whether libxml resource catalog support is enabled.
|
1051
|
+
*/
|
1052
|
+
VALUE
|
1053
|
+
ruby_xml_parser_enabled_catalog_q(VALUE class) {
|
1054
|
+
|
1055
|
+
</pre>
|
1056
|
+
</div>
|
1057
|
+
</div>
|
1058
|
+
</div>
|
1059
|
+
|
1060
|
+
<div id="method-M000005" class="method-detail">
|
1061
|
+
<a name="M000005"></a>
|
1062
|
+
|
1063
|
+
<div class="method-heading">
|
1064
|
+
<a href="#M000005" class="method-signature">
|
1065
|
+
<span class="method-name">XML::Parser.enabled_debug? → (true|false) <br />
|
1066
|
+
</span>
|
1067
|
+
</a>
|
1068
|
+
</div>
|
1069
|
+
|
1070
|
+
<div class="method-description">
|
1071
|
+
<p>
|
1072
|
+
Determine whether libxml debugging support is enabled.
|
1073
|
+
</p>
|
1074
|
+
<p><a class="source-toggle" href="#"
|
1075
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
1076
|
+
<div class="method-source-code" id="M000005-source">
|
1077
|
+
<pre>
|
1078
|
+
/*
|
1079
|
+
* call-seq:
|
1080
|
+
* XML::Parser.enabled_debug? -> (true|false)
|
1081
|
+
*
|
1082
|
+
* Determine whether libxml debugging support is enabled.
|
1083
|
+
*/
|
1084
|
+
VALUE
|
1085
|
+
ruby_xml_parser_enabled_debug_q(VALUE class) {
|
1086
|
+
|
1087
|
+
</pre>
|
1088
|
+
</div>
|
1089
|
+
</div>
|
1090
|
+
</div>
|
1091
|
+
|
1092
|
+
<div id="method-M000006" class="method-detail">
|
1093
|
+
<a name="M000006"></a>
|
1094
|
+
|
1095
|
+
<div class="method-heading">
|
1096
|
+
<a href="#M000006" class="method-signature">
|
1097
|
+
<span class="method-name">XML::Parser.enabled_docbook? → (true|false) <br />
|
1098
|
+
</span>
|
1099
|
+
</a>
|
1100
|
+
</div>
|
1101
|
+
|
1102
|
+
<div class="method-description">
|
1103
|
+
<p>
|
1104
|
+
Determine whether libxml docbook support is enabled.
|
1105
|
+
</p>
|
1106
|
+
<p><a class="source-toggle" href="#"
|
1107
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
1108
|
+
<div class="method-source-code" id="M000006-source">
|
1109
|
+
<pre>
|
1110
|
+
/*
|
1111
|
+
* call-seq:
|
1112
|
+
* XML::Parser.enabled_docbook? -> (true|false)
|
1113
|
+
*
|
1114
|
+
* Determine whether libxml docbook support is enabled.
|
1115
|
+
*/
|
1116
|
+
VALUE
|
1117
|
+
ruby_xml_parser_enabled_docbook_q(VALUE class) {
|
1118
|
+
|
1119
|
+
</pre>
|
1120
|
+
</div>
|
1121
|
+
</div>
|
1122
|
+
</div>
|
1123
|
+
|
1124
|
+
<div id="method-M000007" class="method-detail">
|
1125
|
+
<a name="M000007"></a>
|
1126
|
+
|
1127
|
+
<div class="method-heading">
|
1128
|
+
<a href="#M000007" class="method-signature">
|
1129
|
+
<span class="method-name">XML::Parser.enabled_ftp? → (true|false) <br />
|
1130
|
+
</span>
|
1131
|
+
</a>
|
1132
|
+
</div>
|
1133
|
+
|
1134
|
+
<div class="method-description">
|
1135
|
+
<p>
|
1136
|
+
Determine whether libxml ftp client support is enabled.
|
1137
|
+
</p>
|
1138
|
+
<p><a class="source-toggle" href="#"
|
1139
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
1140
|
+
<div class="method-source-code" id="M000007-source">
|
1141
|
+
<pre>
|
1142
|
+
/*
|
1143
|
+
* call-seq:
|
1144
|
+
* XML::Parser.enabled_ftp? -> (true|false)
|
1145
|
+
*
|
1146
|
+
* Determine whether libxml ftp client support is enabled.
|
1147
|
+
*/
|
1148
|
+
VALUE
|
1149
|
+
ruby_xml_parser_enabled_ftp_q(VALUE class) {
|
1150
|
+
|
1151
|
+
</pre>
|
1152
|
+
</div>
|
1153
|
+
</div>
|
1154
|
+
</div>
|
1155
|
+
|
1156
|
+
<div id="method-M000009" class="method-detail">
|
1157
|
+
<a name="M000009"></a>
|
1158
|
+
|
1159
|
+
<div class="method-heading">
|
1160
|
+
<a href="#M000009" class="method-signature">
|
1161
|
+
<span class="method-name">XML::Parser.enabled_html? → (true|false) <br />
|
1162
|
+
</span>
|
1163
|
+
</a>
|
1164
|
+
</div>
|
1165
|
+
|
1166
|
+
<div class="method-description">
|
1167
|
+
<p>
|
1168
|
+
Determine whether libxml html support is enabled.
|
1169
|
+
</p>
|
1170
|
+
<p><a class="source-toggle" href="#"
|
1171
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
1172
|
+
<div class="method-source-code" id="M000009-source">
|
1173
|
+
<pre>
|
1174
|
+
/*
|
1175
|
+
* call-seq:
|
1176
|
+
* XML::Parser.enabled_html? -> (true|false)
|
1177
|
+
*
|
1178
|
+
* Determine whether libxml html support is enabled.
|
1179
|
+
*/
|
1180
|
+
VALUE
|
1181
|
+
ruby_xml_parser_enabled_html_q(VALUE class) {
|
1182
|
+
|
1183
|
+
</pre>
|
1184
|
+
</div>
|
1185
|
+
</div>
|
1186
|
+
</div>
|
1187
|
+
|
1188
|
+
<div id="method-M000008" class="method-detail">
|
1189
|
+
<a name="M000008"></a>
|
1190
|
+
|
1191
|
+
<div class="method-heading">
|
1192
|
+
<a href="#M000008" class="method-signature">
|
1193
|
+
<span class="method-name">XML::Parser.enabled_http? → (true|false) <br />
|
1194
|
+
</span>
|
1195
|
+
</a>
|
1196
|
+
</div>
|
1197
|
+
|
1198
|
+
<div class="method-description">
|
1199
|
+
<p>
|
1200
|
+
Determine whether libxml http client support is enabled.
|
1201
|
+
</p>
|
1202
|
+
<p><a class="source-toggle" href="#"
|
1203
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
1204
|
+
<div class="method-source-code" id="M000008-source">
|
1205
|
+
<pre>
|
1206
|
+
/*
|
1207
|
+
* call-seq:
|
1208
|
+
* XML::Parser.enabled_http? -> (true|false)
|
1209
|
+
*
|
1210
|
+
* Determine whether libxml http client support is enabled.
|
1211
|
+
*/
|
1212
|
+
VALUE
|
1213
|
+
ruby_xml_parser_enabled_http_q(VALUE class) {
|
1214
|
+
|
1215
|
+
</pre>
|
1216
|
+
</div>
|
1217
|
+
</div>
|
1218
|
+
</div>
|
1219
|
+
|
1220
|
+
<div id="method-M000010" class="method-detail">
|
1221
|
+
<a name="M000010"></a>
|
1222
|
+
|
1223
|
+
<div class="method-heading">
|
1224
|
+
<a href="#M000010" class="method-signature">
|
1225
|
+
<span class="method-name">XML::Parser.enabled_iconv? → (true|false) <br />
|
1226
|
+
</span>
|
1227
|
+
</a>
|
1228
|
+
</div>
|
1229
|
+
|
1230
|
+
<div class="method-description">
|
1231
|
+
<p>
|
1232
|
+
Determine whether libxml iconv support is enabled.
|
1233
|
+
</p>
|
1234
|
+
<p><a class="source-toggle" href="#"
|
1235
|
+
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
1236
|
+
<div class="method-source-code" id="M000010-source">
|
1237
|
+
<pre>
|
1238
|
+
/*
|
1239
|
+
* call-seq:
|
1240
|
+
* XML::Parser.enabled_iconv? -> (true|false)
|
1241
|
+
*
|
1242
|
+
* Determine whether libxml iconv support is enabled.
|
1243
|
+
*/
|
1244
|
+
VALUE
|
1245
|
+
ruby_xml_parser_enabled_iconv_q(VALUE class) {
|
1246
|
+
|
1247
|
+
</pre>
|
1248
|
+
</div>
|
1249
|
+
</div>
|
1250
|
+
</div>
|
1251
|
+
|
1252
|
+
<div id="method-M000011" class="method-detail">
|
1253
|
+
<a name="M000011"></a>
|
1254
|
+
|
1255
|
+
<div class="method-heading">
|
1256
|
+
<a href="#M000011" class="method-signature">
|
1257
|
+
<span class="method-name">XML::Parser.enabled_memory_debug? → (true|false) <br />
|
1258
|
+
</span>
|
1259
|
+
</a>
|
1260
|
+
</div>
|
1261
|
+
|
1262
|
+
<div class="method-description">
|
1263
|
+
<p>
|
1264
|
+
Determine whether libxml memory location debugging support is enabled.
|
1265
|
+
</p>
|
1266
|
+
<p><a class="source-toggle" href="#"
|
1267
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
1268
|
+
<div class="method-source-code" id="M000011-source">
|
1269
|
+
<pre>
|
1270
|
+
/*
|
1271
|
+
* call-seq:
|
1272
|
+
* XML::Parser.enabled_memory_debug? -> (true|false)
|
1273
|
+
*
|
1274
|
+
* Determine whether libxml memory location debugging support
|
1275
|
+
* is enabled.
|
1276
|
+
*/
|
1277
|
+
VALUE
|
1278
|
+
ruby_xml_parser_enabled_memory_debug_location_q(VALUE class) {
|
1279
|
+
|
1280
|
+
</pre>
|
1281
|
+
</div>
|
1282
|
+
</div>
|
1283
|
+
</div>
|
1284
|
+
|
1285
|
+
<div id="method-M000012" class="method-detail">
|
1286
|
+
<a name="M000012"></a>
|
1287
|
+
|
1288
|
+
<div class="method-heading">
|
1289
|
+
<a href="#M000012" class="method-signature">
|
1290
|
+
<span class="method-name">XML::Parser.enabled_regexp? → (true|false) <br />
|
1291
|
+
</span>
|
1292
|
+
</a>
|
1293
|
+
</div>
|
1294
|
+
|
1295
|
+
<div class="method-description">
|
1296
|
+
<p>
|
1297
|
+
Determine whether libxml regular expression support is enabled.
|
1298
|
+
</p>
|
1299
|
+
<p><a class="source-toggle" href="#"
|
1300
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
1301
|
+
<div class="method-source-code" id="M000012-source">
|
1302
|
+
<pre>
|
1303
|
+
/*
|
1304
|
+
* call-seq:
|
1305
|
+
* XML::Parser.enabled_regexp? -> (true|false)
|
1306
|
+
*
|
1307
|
+
* Determine whether libxml regular expression support is enabled.
|
1308
|
+
*/
|
1309
|
+
VALUE
|
1310
|
+
ruby_xml_parser_enabled_regexp_q(VALUE class) {
|
1311
|
+
|
1312
|
+
</pre>
|
1313
|
+
</div>
|
1314
|
+
</div>
|
1315
|
+
</div>
|
1316
|
+
|
1317
|
+
<div id="method-M000013" class="method-detail">
|
1318
|
+
<a name="M000013"></a>
|
1319
|
+
|
1320
|
+
<div class="method-heading">
|
1321
|
+
<a href="#M000013" class="method-signature">
|
1322
|
+
<span class="method-name">XML::Parser.enabled_schemas? → (true|false) <br />
|
1323
|
+
</span>
|
1324
|
+
</a>
|
1325
|
+
</div>
|
1326
|
+
|
1327
|
+
<div class="method-description">
|
1328
|
+
<p>
|
1329
|
+
Determine whether libxml schema support is enabled.
|
1330
|
+
</p>
|
1331
|
+
<p><a class="source-toggle" href="#"
|
1332
|
+
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
1333
|
+
<div class="method-source-code" id="M000013-source">
|
1334
|
+
<pre>
|
1335
|
+
/*
|
1336
|
+
* call-seq:
|
1337
|
+
* XML::Parser.enabled_schemas? -> (true|false)
|
1338
|
+
*
|
1339
|
+
* Determine whether libxml schema support is enabled.
|
1340
|
+
*/
|
1341
|
+
VALUE
|
1342
|
+
ruby_xml_parser_enabled_schemas_q(VALUE class) {
|
1343
|
+
|
1344
|
+
</pre>
|
1345
|
+
</div>
|
1346
|
+
</div>
|
1347
|
+
</div>
|
1348
|
+
|
1349
|
+
<div id="method-M000014" class="method-detail">
|
1350
|
+
<a name="M000014"></a>
|
1351
|
+
|
1352
|
+
<div class="method-heading">
|
1353
|
+
<a href="#M000014" class="method-signature">
|
1354
|
+
<span class="method-name">XML::Parser.enabled_thread? → (true|false) <br />
|
1355
|
+
</span>
|
1356
|
+
</a>
|
1357
|
+
</div>
|
1358
|
+
|
1359
|
+
<div class="method-description">
|
1360
|
+
<p>
|
1361
|
+
Determine whether libxml thread-safe semantics support is enabled (I
|
1362
|
+
think?).
|
1363
|
+
</p>
|
1364
|
+
<p><a class="source-toggle" href="#"
|
1365
|
+
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
1366
|
+
<div class="method-source-code" id="M000014-source">
|
1367
|
+
<pre>
|
1368
|
+
/*
|
1369
|
+
* call-seq:
|
1370
|
+
* XML::Parser.enabled_thread? -> (true|false)
|
1371
|
+
*
|
1372
|
+
* Determine whether libxml thread-safe semantics support
|
1373
|
+
* is enabled (I think?).
|
1374
|
+
*/
|
1375
|
+
VALUE
|
1376
|
+
ruby_xml_parser_enabled_thread_q(VALUE class) {
|
1377
|
+
|
1378
|
+
</pre>
|
1379
|
+
</div>
|
1380
|
+
</div>
|
1381
|
+
</div>
|
1382
|
+
|
1383
|
+
<div id="method-M000015" class="method-detail">
|
1384
|
+
<a name="M000015"></a>
|
1385
|
+
|
1386
|
+
<div class="method-heading">
|
1387
|
+
<a href="#M000015" class="method-signature">
|
1388
|
+
<span class="method-name">XML::Parser.enabled_unicode? → (true|false) <br />
|
1389
|
+
</span>
|
1390
|
+
</a>
|
1391
|
+
</div>
|
1392
|
+
|
1393
|
+
<div class="method-description">
|
1394
|
+
<p>
|
1395
|
+
Determine whether libxml unicode support is enabled.
|
1396
|
+
</p>
|
1397
|
+
<p><a class="source-toggle" href="#"
|
1398
|
+
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
1399
|
+
<div class="method-source-code" id="M000015-source">
|
1400
|
+
<pre>
|
1401
|
+
/*
|
1402
|
+
* call-seq:
|
1403
|
+
* XML::Parser.enabled_unicode? -> (true|false)
|
1404
|
+
*
|
1405
|
+
* Determine whether libxml unicode support is enabled.
|
1406
|
+
*/
|
1407
|
+
VALUE
|
1408
|
+
ruby_xml_parser_enabled_unicode_q(VALUE class) {
|
1409
|
+
|
1410
|
+
</pre>
|
1411
|
+
</div>
|
1412
|
+
</div>
|
1413
|
+
</div>
|
1414
|
+
|
1415
|
+
<div id="method-M000016" class="method-detail">
|
1416
|
+
<a name="M000016"></a>
|
1417
|
+
|
1418
|
+
<div class="method-heading">
|
1419
|
+
<a href="#M000016" class="method-signature">
|
1420
|
+
<span class="method-name">XML::Parser.enabled_xinclude? → (true|false) <br />
|
1421
|
+
</span>
|
1422
|
+
</a>
|
1423
|
+
</div>
|
1424
|
+
|
1425
|
+
<div class="method-description">
|
1426
|
+
<p>
|
1427
|
+
Determine whether libxml xinclude support is enabled.
|
1428
|
+
</p>
|
1429
|
+
<p><a class="source-toggle" href="#"
|
1430
|
+
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
1431
|
+
<div class="method-source-code" id="M000016-source">
|
1432
|
+
<pre>
|
1433
|
+
/*
|
1434
|
+
* call-seq:
|
1435
|
+
* XML::Parser.enabled_xinclude? -> (true|false)
|
1436
|
+
*
|
1437
|
+
* Determine whether libxml xinclude support is enabled.
|
1438
|
+
*/
|
1439
|
+
VALUE
|
1440
|
+
ruby_xml_parser_enabled_xinclude_q(VALUE class) {
|
1441
|
+
|
1442
|
+
</pre>
|
1443
|
+
</div>
|
1444
|
+
</div>
|
1445
|
+
</div>
|
1446
|
+
|
1447
|
+
<div id="method-M000017" class="method-detail">
|
1448
|
+
<a name="M000017"></a>
|
1449
|
+
|
1450
|
+
<div class="method-heading">
|
1451
|
+
<a href="#M000017" class="method-signature">
|
1452
|
+
<span class="method-name">XML::Parser.enabled_xpath? → (true|false) <br />
|
1453
|
+
</span>
|
1454
|
+
</a>
|
1455
|
+
</div>
|
1456
|
+
|
1457
|
+
<div class="method-description">
|
1458
|
+
<p>
|
1459
|
+
Determine whether libxml xpath support is enabled.
|
1460
|
+
</p>
|
1461
|
+
<p><a class="source-toggle" href="#"
|
1462
|
+
onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
|
1463
|
+
<div class="method-source-code" id="M000017-source">
|
1464
|
+
<pre>
|
1465
|
+
/*
|
1466
|
+
* call-seq:
|
1467
|
+
* XML::Parser.enabled_xpath? -> (true|false)
|
1468
|
+
*
|
1469
|
+
* Determine whether libxml xpath support is enabled.
|
1470
|
+
*/
|
1471
|
+
VALUE
|
1472
|
+
ruby_xml_parser_enabled_xpath_q(VALUE class) {
|
1473
|
+
|
1474
|
+
</pre>
|
1475
|
+
</div>
|
1476
|
+
</div>
|
1477
|
+
</div>
|
1478
|
+
|
1479
|
+
<div id="method-M000018" class="method-detail">
|
1480
|
+
<a name="M000018"></a>
|
1481
|
+
|
1482
|
+
<div class="method-heading">
|
1483
|
+
<a href="#M000018" class="method-signature">
|
1484
|
+
<span class="method-name">XML::Parser.enabled_xpointer? → (true|false) <br />
|
1485
|
+
</span>
|
1486
|
+
</a>
|
1487
|
+
</div>
|
1488
|
+
|
1489
|
+
<div class="method-description">
|
1490
|
+
<p>
|
1491
|
+
Determine whether libxml xpointer support is enabled.
|
1492
|
+
</p>
|
1493
|
+
<p><a class="source-toggle" href="#"
|
1494
|
+
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
1495
|
+
<div class="method-source-code" id="M000018-source">
|
1496
|
+
<pre>
|
1497
|
+
/*
|
1498
|
+
* call-seq:
|
1499
|
+
* XML::Parser.enabled_xpointer? -> (true|false)
|
1500
|
+
*
|
1501
|
+
* Determine whether libxml xpointer support is enabled.
|
1502
|
+
*/
|
1503
|
+
VALUE
|
1504
|
+
ruby_xml_parser_enabled_xpointer_q(VALUE class) {
|
1505
|
+
|
1506
|
+
</pre>
|
1507
|
+
</div>
|
1508
|
+
</div>
|
1509
|
+
</div>
|
1510
|
+
|
1511
|
+
<div id="method-M000019" class="method-detail">
|
1512
|
+
<a name="M000019"></a>
|
1513
|
+
|
1514
|
+
<div class="method-heading">
|
1515
|
+
<a href="#M000019" class="method-signature">
|
1516
|
+
<span class="method-name">XML::Parser.enabled_zlib? → (true|false) <br />
|
1517
|
+
</span>
|
1518
|
+
</a>
|
1519
|
+
</div>
|
1520
|
+
|
1521
|
+
<div class="method-description">
|
1522
|
+
<p>
|
1523
|
+
Determine whether libxml zlib support is enabled.
|
1524
|
+
</p>
|
1525
|
+
<p><a class="source-toggle" href="#"
|
1526
|
+
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
1527
|
+
<div class="method-source-code" id="M000019-source">
|
1528
|
+
<pre>
|
1529
|
+
/*
|
1530
|
+
* call-seq:
|
1531
|
+
* XML::Parser.enabled_zlib? -> (true|false)
|
1532
|
+
*
|
1533
|
+
* Determine whether libxml zlib support is enabled.
|
1534
|
+
*/
|
1535
|
+
VALUE
|
1536
|
+
ruby_xml_parser_enabled_zlib_q(VALUE class) {
|
1537
|
+
|
1538
|
+
</pre>
|
1539
|
+
</div>
|
1540
|
+
</div>
|
1541
|
+
</div>
|
1542
|
+
|
1543
|
+
<div id="method-M000043" class="method-detail">
|
1544
|
+
<a name="M000043"></a>
|
1545
|
+
|
1546
|
+
<div class="method-heading">
|
1547
|
+
<a href="#M000043" class="method-signature">
|
1548
|
+
<span class="method-name">XML::Parser.features → ["feature", ..., "feature"]<br />
|
1549
|
+
</span>
|
1550
|
+
</a>
|
1551
|
+
</div>
|
1552
|
+
|
1553
|
+
<div class="method-description">
|
1554
|
+
<p>
|
1555
|
+
Obtains an array of strings representing features supported (and enabled)
|
1556
|
+
by the installed libxml.
|
1557
|
+
</p>
|
1558
|
+
<p><a class="source-toggle" href="#"
|
1559
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
1560
|
+
<div class="method-source-code" id="M000043-source">
|
1561
|
+
<pre>
|
1562
|
+
/*
|
1563
|
+
* call-seq:
|
1564
|
+
* XML::Parser.features -> ["feature", ..., "feature"]
|
1565
|
+
*
|
1566
|
+
* Obtains an array of strings representing features supported
|
1567
|
+
* (and enabled) by the installed libxml.
|
1568
|
+
*/
|
1569
|
+
VALUE
|
1570
|
+
ruby_xml_parser_features(VALUE class) {
|
1571
|
+
|
1572
|
+
</pre>
|
1573
|
+
</div>
|
1574
|
+
</div>
|
1575
|
+
</div>
|
1576
|
+
|
1577
|
+
<div id="method-M000044" class="method-detail">
|
1578
|
+
<a name="M000044"></a>
|
1579
|
+
|
1580
|
+
<div class="method-heading">
|
1581
|
+
<a href="#M000044" class="method-signature">
|
1582
|
+
<span class="method-name">XML::Parser.file → parser<br />
|
1583
|
+
</span>
|
1584
|
+
</a>
|
1585
|
+
</div>
|
1586
|
+
|
1587
|
+
<div class="method-description">
|
1588
|
+
<p>
|
1589
|
+
Create a new parser instance that will read the specified file.
|
1590
|
+
</p>
|
1591
|
+
<p><a class="source-toggle" href="#"
|
1592
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
1593
|
+
<div class="method-source-code" id="M000044-source">
|
1594
|
+
<pre>
|
1595
|
+
/*
|
1596
|
+
* call-seq:
|
1597
|
+
* XML::Parser.file -> parser
|
1598
|
+
*
|
1599
|
+
* Create a new parser instance that will read the specified file.
|
1600
|
+
*/
|
1601
|
+
VALUE
|
1602
|
+
ruby_xml_parser_new_file(VALUE class, VALUE filename) {
|
1603
|
+
|
1604
|
+
</pre>
|
1605
|
+
</div>
|
1606
|
+
</div>
|
1607
|
+
</div>
|
1608
|
+
|
1609
|
+
<div id="method-M000045" class="method-detail">
|
1610
|
+
<a name="M000045"></a>
|
1611
|
+
|
1612
|
+
<div class="method-heading">
|
1613
|
+
<a href="#M000045" class="method-signature">
|
1614
|
+
<span class="method-name">XML::Parser.indent_tree_output → (true|false)<br />
|
1615
|
+
</span>
|
1616
|
+
</a>
|
1617
|
+
</div>
|
1618
|
+
|
1619
|
+
<div class="method-description">
|
1620
|
+
<p>
|
1621
|
+
Determines whether <a href="../XML.html">XML</a> output will be indented
|
1622
|
+
(using the string supplied to <tt>default_indent_tree_string</tt>)
|
1623
|
+
</p>
|
1624
|
+
<p><a class="source-toggle" href="#"
|
1625
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
1626
|
+
<div class="method-source-code" id="M000045-source">
|
1627
|
+
<pre>
|
1628
|
+
/*
|
1629
|
+
* call-seq:
|
1630
|
+
* XML::Parser.indent_tree_output -> (true|false)
|
1631
|
+
*
|
1632
|
+
* Determines whether XML output will be indented
|
1633
|
+
* (using the string supplied to +default_indent_tree_string+)
|
1634
|
+
*/
|
1635
|
+
VALUE
|
1636
|
+
ruby_xml_parser_indent_tree_output_get(VALUE class) {
|
1637
|
+
|
1638
|
+
</pre>
|
1639
|
+
</div>
|
1640
|
+
</div>
|
1641
|
+
</div>
|
1642
|
+
|
1643
|
+
<div id="method-M000046" class="method-detail">
|
1644
|
+
<a name="M000046"></a>
|
1645
|
+
|
1646
|
+
<div class="method-heading">
|
1647
|
+
<a href="#M000046" class="method-signature">
|
1648
|
+
<span class="method-name">XML::Parser.indent_tree_output = true|false<br />
|
1649
|
+
</span>
|
1650
|
+
</a>
|
1651
|
+
</div>
|
1652
|
+
|
1653
|
+
<div class="method-description">
|
1654
|
+
<p>
|
1655
|
+
Controls whether <a href="../XML.html">XML</a> output will be indented
|
1656
|
+
(using the string supplied to <tt>default_indent_tree_string</tt>)
|
1657
|
+
</p>
|
1658
|
+
<p><a class="source-toggle" href="#"
|
1659
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
1660
|
+
<div class="method-source-code" id="M000046-source">
|
1661
|
+
<pre>
|
1662
|
+
/*
|
1663
|
+
* call-seq:
|
1664
|
+
* XML::Parser.indent_tree_output = true|false
|
1665
|
+
*
|
1666
|
+
* Controls whether XML output will be indented
|
1667
|
+
* (using the string supplied to +default_indent_tree_string+)
|
1668
|
+
*/
|
1669
|
+
VALUE
|
1670
|
+
ruby_xml_parser_indent_tree_output_set(VALUE class, VALUE bool) {
|
1671
|
+
|
1672
|
+
</pre>
|
1673
|
+
</div>
|
1674
|
+
</div>
|
1675
|
+
</div>
|
1676
|
+
|
1677
|
+
<div id="method-M000047" class="method-detail">
|
1678
|
+
<a name="M000047"></a>
|
1679
|
+
|
1680
|
+
<div class="method-heading">
|
1681
|
+
<a href="#M000047" class="method-signature">
|
1682
|
+
<span class="method-name">XML::Parser.io → parser<br />
|
1683
|
+
</span>
|
1684
|
+
</a>
|
1685
|
+
</div>
|
1686
|
+
|
1687
|
+
<div class="method-description">
|
1688
|
+
<p>
|
1689
|
+
Create a new parser instance that will read from the specified IO object.
|
1690
|
+
</p>
|
1691
|
+
<p><a class="source-toggle" href="#"
|
1692
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
1693
|
+
<div class="method-source-code" id="M000047-source">
|
1694
|
+
<pre>
|
1695
|
+
/*
|
1696
|
+
* call-seq:
|
1697
|
+
* XML::Parser.io -> parser
|
1698
|
+
*
|
1699
|
+
* Create a new parser instance that will read from the
|
1700
|
+
* specified IO object.
|
1701
|
+
*/
|
1702
|
+
VALUE
|
1703
|
+
ruby_xml_parser_new_io(VALUE class, VALUE io) {
|
1704
|
+
|
1705
|
+
</pre>
|
1706
|
+
</div>
|
1707
|
+
</div>
|
1708
|
+
</div>
|
1709
|
+
|
1710
|
+
<div id="method-M000048" class="method-detail">
|
1711
|
+
<a name="M000048"></a>
|
1712
|
+
|
1713
|
+
<div class="method-heading">
|
1714
|
+
<a href="#M000048" class="method-signature">
|
1715
|
+
<span class="method-name">XML::Parser.memory_dump → (true|false)<br />
|
1716
|
+
</span>
|
1717
|
+
</a>
|
1718
|
+
</div>
|
1719
|
+
|
1720
|
+
<div class="method-description">
|
1721
|
+
<p>
|
1722
|
+
Perform a parser memory dump (requires memory debugging support in libxml).
|
1723
|
+
</p>
|
1724
|
+
<p><a class="source-toggle" href="#"
|
1725
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
1726
|
+
<div class="method-source-code" id="M000048-source">
|
1727
|
+
<pre>
|
1728
|
+
/*
|
1729
|
+
* call-seq:
|
1730
|
+
* XML::Parser.memory_dump -> (true|false)
|
1731
|
+
*
|
1732
|
+
* Perform a parser memory dump (requires memory debugging
|
1733
|
+
* support in libxml).
|
1734
|
+
*/
|
1735
|
+
VALUE
|
1736
|
+
ruby_xml_parser_memory_dump(VALUE self) {
|
1737
|
+
|
1738
|
+
</pre>
|
1739
|
+
</div>
|
1740
|
+
</div>
|
1741
|
+
</div>
|
1742
|
+
|
1743
|
+
<div id="method-M000049" class="method-detail">
|
1744
|
+
<a name="M000049"></a>
|
1745
|
+
|
1746
|
+
<div class="method-heading">
|
1747
|
+
<a href="#M000049" class="method-signature">
|
1748
|
+
<span class="method-name">XML::Parser.memory_used → num_bytes<br />
|
1749
|
+
</span>
|
1750
|
+
</a>
|
1751
|
+
</div>
|
1752
|
+
|
1753
|
+
<div class="method-description">
|
1754
|
+
<p>
|
1755
|
+
Perform a parser memory dump (requires memory debugging support in libxml).
|
1756
|
+
</p>
|
1757
|
+
<p><a class="source-toggle" href="#"
|
1758
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
1759
|
+
<div class="method-source-code" id="M000049-source">
|
1760
|
+
<pre>
|
1761
|
+
/*
|
1762
|
+
* call-seq:
|
1763
|
+
* XML::Parser.memory_used -> num_bytes
|
1764
|
+
*
|
1765
|
+
* Perform a parser memory dump (requires memory debugging
|
1766
|
+
* support in libxml).
|
1767
|
+
*/
|
1768
|
+
VALUE
|
1769
|
+
ruby_xml_parser_memory_used(VALUE self) {
|
1770
|
+
|
1771
|
+
</pre>
|
1772
|
+
</div>
|
1773
|
+
</div>
|
1774
|
+
</div>
|
1775
|
+
|
1776
|
+
<div id="method-M000050" class="method-detail">
|
1777
|
+
<a name="M000050"></a>
|
1778
|
+
|
1779
|
+
<div class="method-heading">
|
1780
|
+
<a href="#M000050" class="method-signature">
|
1781
|
+
<span class="method-name">XML::Parser.new → parser<br />
|
1782
|
+
</span>
|
1783
|
+
</a>
|
1784
|
+
</div>
|
1785
|
+
|
1786
|
+
<div class="method-description">
|
1787
|
+
<p>
|
1788
|
+
Create a new parser instance with no pre-determined source.
|
1789
|
+
</p>
|
1790
|
+
<p><a class="source-toggle" href="#"
|
1791
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
1792
|
+
<div class="method-source-code" id="M000050-source">
|
1793
|
+
<pre>
|
1794
|
+
/*
|
1795
|
+
* call-seq:
|
1796
|
+
* XML::Parser.new -> parser
|
1797
|
+
*
|
1798
|
+
* Create a new parser instance with no pre-determined source.
|
1799
|
+
*/
|
1800
|
+
VALUE
|
1801
|
+
ruby_xml_parser_new(VALUE class) {
|
1802
|
+
|
1803
|
+
</pre>
|
1804
|
+
</div>
|
1805
|
+
</div>
|
1806
|
+
</div>
|
1807
|
+
|
1808
|
+
<div id="method-M000052" class="method-detail">
|
1809
|
+
<a name="M000052"></a>
|
1810
|
+
|
1811
|
+
<div class="method-heading">
|
1812
|
+
<a href="#M000052" class="method-signature">
|
1813
|
+
<span class="method-name">XML::Parser.register_error_handler(lambda { |msg| ... }) → old_handler<br />
|
1814
|
+
XML::Parser.register_error_handler(nil) → old_handler<br />
|
1815
|
+
</span>
|
1816
|
+
</a>
|
1817
|
+
</div>
|
1818
|
+
|
1819
|
+
<div class="method-description">
|
1820
|
+
<p>
|
1821
|
+
Register the attached block as the handler for parser errors. A message
|
1822
|
+
describing parse errors is passed to the block. Libxml passes error
|
1823
|
+
messages to the handler in parts, one per call. A typical error results in
|
1824
|
+
six calls to this proc, with arguments:
|
1825
|
+
</p>
|
1826
|
+
<pre>
|
1827
|
+
"Entity: line 1: ",
|
1828
|
+
"parser ",
|
1829
|
+
"error : ",
|
1830
|
+
"Opening and ending tag mismatch: foo line 1 and foz\n",
|
1831
|
+
"<foo><bar/></foz>\n",
|
1832
|
+
" ^\n"
|
1833
|
+
</pre>
|
1834
|
+
<p>
|
1835
|
+
Note that the error handler is shared by all threads.
|
1836
|
+
</p>
|
1837
|
+
<p><a class="source-toggle" href="#"
|
1838
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
1839
|
+
<div class="method-source-code" id="M000052-source">
|
1840
|
+
<pre>
|
1841
|
+
/*
|
1842
|
+
* call-seq:
|
1843
|
+
* XML::Parser.register_error_handler(lambda { |msg| ... }) -> old_handler
|
1844
|
+
* XML::Parser.register_error_handler(nil) -> old_handler
|
1845
|
+
*
|
1846
|
+
* Register the attached block as the handler for parser errors.
|
1847
|
+
* A message describing parse errors is passed to the block.
|
1848
|
+
* Libxml passes error messages to the handler in parts, one per call.
|
1849
|
+
* A typical error results in six calls to this proc, with arguments:
|
1850
|
+
*
|
1851
|
+
* "Entity: line 1: ",
|
1852
|
+
* "parser ",
|
1853
|
+
* "error : ",
|
1854
|
+
* "Opening and ending tag mismatch: foo line 1 and foz\n",
|
1855
|
+
* "<foo><bar/></foz>\n",
|
1856
|
+
* " ^\n"
|
1857
|
+
*
|
1858
|
+
* Note that the error handler is shared by all threads.
|
1859
|
+
*/
|
1860
|
+
VALUE
|
1861
|
+
ruby_xml_parser_registerErrorHandler(VALUE self, VALUE proc) {
|
1862
|
+
|
1863
|
+
</pre>
|
1864
|
+
</div>
|
1865
|
+
</div>
|
1866
|
+
</div>
|
1867
|
+
|
1868
|
+
<div id="method-M000051" class="method-detail">
|
1869
|
+
<a name="M000051"></a>
|
1870
|
+
|
1871
|
+
<div class="method-heading">
|
1872
|
+
<a href="#M000051" class="method-signature">
|
1873
|
+
<span class="method-name">XML::Parser.string → parser<br />
|
1874
|
+
</span>
|
1875
|
+
</a>
|
1876
|
+
</div>
|
1877
|
+
|
1878
|
+
<div class="method-description">
|
1879
|
+
<p>
|
1880
|
+
Create a new parser instance that will parse the given string.
|
1881
|
+
</p>
|
1882
|
+
<p><a class="source-toggle" href="#"
|
1883
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
1884
|
+
<div class="method-source-code" id="M000051-source">
|
1885
|
+
<pre>
|
1886
|
+
/*
|
1887
|
+
* call-seq:
|
1888
|
+
* XML::Parser.string -> parser
|
1889
|
+
*
|
1890
|
+
* Create a new parser instance that will parse the given
|
1891
|
+
* string.
|
1892
|
+
*/
|
1893
|
+
VALUE
|
1894
|
+
ruby_xml_parser_new_string(VALUE class, VALUE str) {
|
1895
|
+
|
1896
|
+
</pre>
|
1897
|
+
</div>
|
1898
|
+
</div>
|
1899
|
+
</div>
|
1900
|
+
|
1901
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
1902
|
+
|
1903
|
+
<div id="method-M000058" class="method-detail">
|
1904
|
+
<a name="M000058"></a>
|
1905
|
+
|
1906
|
+
<div class="method-heading">
|
1907
|
+
<a href="#M000058" class="method-signature">
|
1908
|
+
<span class="method-name">parser.context → context<br />
|
1909
|
+
</span>
|
1910
|
+
</a>
|
1911
|
+
</div>
|
1912
|
+
|
1913
|
+
<div class="method-description">
|
1914
|
+
<p>
|
1915
|
+
Obtain the <a href="Parser/Context.html">XML::Parser::Context</a>
|
1916
|
+
associated with this parser.
|
1917
|
+
</p>
|
1918
|
+
<p><a class="source-toggle" href="#"
|
1919
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
1920
|
+
<div class="method-source-code" id="M000058-source">
|
1921
|
+
<pre>
|
1922
|
+
/*
|
1923
|
+
* call-seq:
|
1924
|
+
* parser.context -> context
|
1925
|
+
*
|
1926
|
+
* Obtain the XML::Parser::Context associated with this
|
1927
|
+
* parser.
|
1928
|
+
*/
|
1929
|
+
VALUE
|
1930
|
+
ruby_xml_parser_context_get(VALUE self) {
|
1931
|
+
|
1932
|
+
</pre>
|
1933
|
+
</div>
|
1934
|
+
</div>
|
1935
|
+
</div>
|
1936
|
+
|
1937
|
+
<div id="method-M000053" class="method-detail">
|
1938
|
+
<a name="M000053"></a>
|
1939
|
+
|
1940
|
+
<div class="method-heading">
|
1941
|
+
<a href="#M000053" class="method-signature">
|
1942
|
+
<span class="method-name">parser.filename → "filename"<br />
|
1943
|
+
</span>
|
1944
|
+
</a>
|
1945
|
+
</div>
|
1946
|
+
|
1947
|
+
<div class="method-description">
|
1948
|
+
<p>
|
1949
|
+
Obtain the filename this parser will read from.
|
1950
|
+
</p>
|
1951
|
+
<p><a class="source-toggle" href="#"
|
1952
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
1953
|
+
<div class="method-source-code" id="M000053-source">
|
1954
|
+
<pre>
|
1955
|
+
/*
|
1956
|
+
* call-seq:
|
1957
|
+
* parser.filename -> "filename"
|
1958
|
+
*
|
1959
|
+
* Obtain the filename this parser will read from.
|
1960
|
+
*/
|
1961
|
+
VALUE
|
1962
|
+
ruby_xml_parser_filename_get(VALUE self) {
|
1963
|
+
|
1964
|
+
</pre>
|
1965
|
+
</div>
|
1966
|
+
</div>
|
1967
|
+
</div>
|
1968
|
+
|
1969
|
+
<div id="method-M000054" class="method-detail">
|
1970
|
+
<a name="M000054"></a>
|
1971
|
+
|
1972
|
+
<div class="method-heading">
|
1973
|
+
<a href="#M000054" class="method-signature">
|
1974
|
+
<span class="method-name">parser.filename = "filename"<br />
|
1975
|
+
</span>
|
1976
|
+
</a>
|
1977
|
+
</div>
|
1978
|
+
|
1979
|
+
<div class="method-description">
|
1980
|
+
<p>
|
1981
|
+
Set the filename this parser will read from.
|
1982
|
+
</p>
|
1983
|
+
<p><a class="source-toggle" href="#"
|
1984
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
1985
|
+
<div class="method-source-code" id="M000054-source">
|
1986
|
+
<pre>
|
1987
|
+
/*
|
1988
|
+
* call-seq:
|
1989
|
+
* parser.filename = "filename"
|
1990
|
+
*
|
1991
|
+
* Set the filename this parser will read from.
|
1992
|
+
*/
|
1993
|
+
VALUE
|
1994
|
+
ruby_xml_parser_filename_set(VALUE self, VALUE filename) {
|
1995
|
+
|
1996
|
+
</pre>
|
1997
|
+
</div>
|
1998
|
+
</div>
|
1999
|
+
</div>
|
2000
|
+
|
2001
|
+
<div id="method-M000055" class="method-detail">
|
2002
|
+
<a name="M000055"></a>
|
2003
|
+
|
2004
|
+
<div class="method-heading">
|
2005
|
+
<a href="#M000055" class="method-signature">
|
2006
|
+
<span class="method-name">parser.io → IO<br />
|
2007
|
+
</span>
|
2008
|
+
</a>
|
2009
|
+
</div>
|
2010
|
+
|
2011
|
+
<div class="method-description">
|
2012
|
+
<p>
|
2013
|
+
Obtain the IO instance this parser works with.
|
2014
|
+
</p>
|
2015
|
+
<p><a class="source-toggle" href="#"
|
2016
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
2017
|
+
<div class="method-source-code" id="M000055-source">
|
2018
|
+
<pre>
|
2019
|
+
/*
|
2020
|
+
* call-seq:
|
2021
|
+
* parser.io -> IO
|
2022
|
+
*
|
2023
|
+
* Obtain the IO instance this parser works with.
|
2024
|
+
*/
|
2025
|
+
VALUE
|
2026
|
+
ruby_xml_parser_io_get(VALUE self, VALUE io) {
|
2027
|
+
|
2028
|
+
</pre>
|
2029
|
+
</div>
|
2030
|
+
</div>
|
2031
|
+
</div>
|
2032
|
+
|
2033
|
+
<div id="method-M000056" class="method-detail">
|
2034
|
+
<a name="M000056"></a>
|
2035
|
+
|
2036
|
+
<div class="method-heading">
|
2037
|
+
<a href="#M000056" class="method-signature">
|
2038
|
+
<span class="method-name">parser.io = IO<br />
|
2039
|
+
</span>
|
2040
|
+
</a>
|
2041
|
+
</div>
|
2042
|
+
|
2043
|
+
<div class="method-description">
|
2044
|
+
<p>
|
2045
|
+
Set the IO instance this parser works with.
|
2046
|
+
</p>
|
2047
|
+
<p><a class="source-toggle" href="#"
|
2048
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
2049
|
+
<div class="method-source-code" id="M000056-source">
|
2050
|
+
<pre>
|
2051
|
+
/*
|
2052
|
+
* call-seq:
|
2053
|
+
* parser.io = IO
|
2054
|
+
*
|
2055
|
+
* Set the IO instance this parser works with.
|
2056
|
+
*/
|
2057
|
+
VALUE
|
2058
|
+
ruby_xml_parser_io_set(VALUE self, VALUE io) {
|
2059
|
+
|
2060
|
+
</pre>
|
2061
|
+
</div>
|
2062
|
+
</div>
|
2063
|
+
</div>
|
2064
|
+
|
2065
|
+
<div id="method-M000057" class="method-detail">
|
2066
|
+
<a name="M000057"></a>
|
2067
|
+
|
2068
|
+
<div class="method-heading">
|
2069
|
+
<a href="#M000057" class="method-signature">
|
2070
|
+
<span class="method-name">parser.parse → document<br />
|
2071
|
+
</span>
|
2072
|
+
</a>
|
2073
|
+
</div>
|
2074
|
+
|
2075
|
+
<div class="method-description">
|
2076
|
+
<p>
|
2077
|
+
Parse the input <a href="../XML.html">XML</a> and create an <a
|
2078
|
+
href="Document.html">XML::Document</a> with it’s content. If an error
|
2079
|
+
occurs, <a href="Parser/ParseError.html">XML::Parser::ParseError</a> is
|
2080
|
+
thrown.
|
2081
|
+
</p>
|
2082
|
+
<p><a class="source-toggle" href="#"
|
2083
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
2084
|
+
<div class="method-source-code" id="M000057-source">
|
2085
|
+
<pre>
|
2086
|
+
/*
|
2087
|
+
* call-seq:
|
2088
|
+
* parser.parse -> document
|
2089
|
+
*
|
2090
|
+
* Parse the input XML and create an XML::Document with
|
2091
|
+
* it's content. If an error occurs, XML::Parser::ParseError
|
2092
|
+
* is thrown.
|
2093
|
+
*/
|
2094
|
+
VALUE
|
2095
|
+
ruby_xml_parser_parse(VALUE self) {
|
2096
|
+
|
2097
|
+
</pre>
|
2098
|
+
</div>
|
2099
|
+
</div>
|
2100
|
+
</div>
|
2101
|
+
|
2102
|
+
<div id="method-M000059" class="method-detail">
|
2103
|
+
<a name="M000059"></a>
|
2104
|
+
|
2105
|
+
<div class="method-heading">
|
2106
|
+
<a href="#M000059" class="method-signature">
|
2107
|
+
<span class="method-name">parser.string → "string"<br />
|
2108
|
+
</span>
|
2109
|
+
</a>
|
2110
|
+
</div>
|
2111
|
+
|
2112
|
+
<div class="method-description">
|
2113
|
+
<p>
|
2114
|
+
Obtain the string this parser works with.
|
2115
|
+
</p>
|
2116
|
+
<p><a class="source-toggle" href="#"
|
2117
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
2118
|
+
<div class="method-source-code" id="M000059-source">
|
2119
|
+
<pre>
|
2120
|
+
/*
|
2121
|
+
* call-seq:
|
2122
|
+
* parser.string -> "string"
|
2123
|
+
*
|
2124
|
+
* Obtain the string this parser works with.
|
2125
|
+
*/
|
2126
|
+
VALUE
|
2127
|
+
ruby_xml_parser_str_get(VALUE self) {
|
2128
|
+
|
2129
|
+
</pre>
|
2130
|
+
</div>
|
2131
|
+
</div>
|
2132
|
+
</div>
|
2133
|
+
|
2134
|
+
<div id="method-M000060" class="method-detail">
|
2135
|
+
<a name="M000060"></a>
|
2136
|
+
|
2137
|
+
<div class="method-heading">
|
2138
|
+
<a href="#M000060" class="method-signature">
|
2139
|
+
<span class="method-name">parser.string = "string"<br />
|
2140
|
+
</span>
|
2141
|
+
</a>
|
2142
|
+
</div>
|
2143
|
+
|
2144
|
+
<div class="method-description">
|
2145
|
+
<p>
|
2146
|
+
Set the string this parser works with.
|
2147
|
+
</p>
|
2148
|
+
<p><a class="source-toggle" href="#"
|
2149
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
2150
|
+
<div class="method-source-code" id="M000060-source">
|
2151
|
+
<pre>
|
2152
|
+
/*
|
2153
|
+
* call-seq:
|
2154
|
+
* parser.string = "string"
|
2155
|
+
*
|
2156
|
+
* Set the string this parser works with.
|
2157
|
+
*/
|
2158
|
+
VALUE
|
2159
|
+
ruby_xml_parser_str_set(VALUE self, VALUE str) {
|
2160
|
+
|
2161
|
+
</pre>
|
2162
|
+
</div>
|
2163
|
+
</div>
|
2164
|
+
</div>
|
2165
|
+
|
2166
|
+
|
2167
|
+
</div>
|
2168
|
+
|
2169
|
+
|
2170
|
+
</div>
|
2171
|
+
|
2172
|
+
|
2173
|
+
<div id="validator-badges">
|
2174
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
2175
|
+
</div>
|
2176
|
+
|
2177
|
+
</body>
|
2178
|
+
</html>
|