218 lines
No EOL
5.3 KiB
HTML
218 lines
No EOL
5.3 KiB
HTML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title>Class: CFPropertyList::XML</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
<script type="text/javascript">
|
|
// <![CDATA[
|
|
|
|
function popupCode( url ) {
|
|
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
}
|
|
|
|
function toggleCode( id ) {
|
|
if ( document.getElementById )
|
|
elem = document.getElementById( id );
|
|
else if ( document.all )
|
|
elem = eval( "document.all." + id );
|
|
else
|
|
return false;
|
|
|
|
elemStyle = elem.style;
|
|
|
|
if ( elemStyle.display != "block" ) {
|
|
elemStyle.display = "block"
|
|
} else {
|
|
elemStyle.display = "none"
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
// Make codeblocks hidden by default
|
|
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
|
|
// ]]>
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<div id="classHeader">
|
|
<table class="header-table">
|
|
<tr class="top-aligned-row">
|
|
<td><strong>Class</strong></td>
|
|
<td class="class-name-in-header">CFPropertyList::XML</td>
|
|
</tr>
|
|
<tr class="top-aligned-row">
|
|
<td><strong>In:</strong></td>
|
|
<td>
|
|
<a href="../../files/rbXMLCFPropertyList_rb.html">
|
|
rbXMLCFPropertyList.rb
|
|
</a>
|
|
<br />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="top-aligned-row">
|
|
<td><strong>Parent:</strong></td>
|
|
<td>
|
|
<a href="ParserInterface.html">
|
|
ParserInterface
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- banner header -->
|
|
|
|
<div id="bodyContent">
|
|
|
|
|
|
|
|
<div id="contextContent">
|
|
|
|
<div id="description">
|
|
<p>
|
|
<a href="XML.html">XML</a> parser
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div id="method-list">
|
|
<h3 class="section-bar">Methods</h3>
|
|
|
|
<div class="name-list">
|
|
<a href="#M000008">get_value</a>
|
|
<a href="#M000009">import_xml</a>
|
|
<a href="#M000006">load</a>
|
|
<a href="#M000007">to_str</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- if includes -->
|
|
|
|
<div id="section">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- if method_list -->
|
|
<div id="methods">
|
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
|
|
<div id="method-M000006" class="method-detail">
|
|
<a name="M000006"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="XML.src/M000006.html" target="Code" class="method-signature"
|
|
onclick="popupCode('XML.src/M000006.html');return false;">
|
|
<span class="method-name">load</span><span class="method-args">(opts)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
read a <a href="XML.html">XML</a> file opts::
|
|
</p>
|
|
<ul>
|
|
<li>:file - The filename of the file to <a href="XML.html#M000006">load</a>
|
|
|
|
</li>
|
|
<li>:data - The data to parse
|
|
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000007" class="method-detail">
|
|
<a name="M000007"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="XML.src/M000007.html" target="Code" class="method-signature"
|
|
onclick="popupCode('XML.src/M000007.html');return false;">
|
|
<span class="method-name">to_str</span><span class="method-args">(opts={})</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
serialize <a href="../CFPropertyList.html">CFPropertyList</a> object to <a
|
|
href="XML.html">XML</a>
|
|
</p>
|
|
<table>
|
|
<tr><td valign="top">opts = {}:</td><td>Specify options: :formatted - Use indention and line breaks
|
|
|
|
</td></tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<h3 class="section-bar">Protected Instance methods</h3>
|
|
|
|
<div id="method-M000008" class="method-detail">
|
|
<a name="M000008"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="XML.src/M000008.html" target="Code" class="method-signature"
|
|
onclick="popupCode('XML.src/M000008.html');return false;">
|
|
<span class="method-name">get_value</span><span class="method-args">(n)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
get the value of a DOM node
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="method-M000009" class="method-detail">
|
|
<a name="M000009"></a>
|
|
|
|
<div class="method-heading">
|
|
<a href="XML.src/M000009.html" target="Code" class="method-signature"
|
|
onclick="popupCode('XML.src/M000009.html');return false;">
|
|
<span class="method-name">import_xml</span><span class="method-args">(node)</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="method-description">
|
|
<p>
|
|
import the <a href="XML.html">XML</a> values
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="validator-badges">
|
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |