1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.6 $ -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.domnode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The DOMNode class</title>
<titleabbrev>DOMNode</titleabbrev>
<partintro>
<!-- {{{ DOMNode intro
<section xml:id="domnode.intro">
&reftitle.intro;
<para>
Description of the class.
</para>
</section>
}}} -->
<section xml:id="domnode.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>DOMNode</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>DOMNode</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Properties</classsynopsisinfo>
<!-- If the property is documented below (xml:id=domnode.props) use this -->
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname linkend="domnode.props.nodename">nodeName</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="domnode.props.nodevalue">nodeValue</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>int</type>
<varname linkend="domnode.props.nodetype">nodeType</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNode</type>
<varname linkend="domnode.props.parentnode">parentNode</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNodeList</type>
<varname linkend="domnode.props.childnodes">childNodes</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNode</type>
<varname linkend="domnode.props.firstchild">firstChild</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNode</type>
<varname linkend="domnode.props.lastchild">lastChild</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNode</type>
<varname linkend="domnode.props.previoussibling">previousSibling</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNode</type>
<varname linkend="domnode.props.nextsibling">nextSibling</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMNamedNodeMap</type>
<varname linkend="domnode.props.attributes">attributes</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>DOMDocument</type>
<varname linkend="domnode.props.ownerdocument">ownerDocument</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname linkend="domnode.props.namespaceuri">namespaceURI</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="domnode.props.prefix">prefix</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname linkend="domnode.props.localname">localName</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>string</type>
<varname linkend="domnode.props.baseuri">baseURI</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="domnode.props.textcontent">textContent</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">Methods</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domnode')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ DOMNode properties -->
<section xml:id="domnode.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="domnode.props.nodename">
<term><varname>nodeName</varname></term>
<listitem>
<para>Returns the most accurate name for the current node type</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.nodevalue">
<term><varname>nodeValue</varname></term>
<listitem>
<para>The value of this node, depending on its type</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.nodetype">
<term><varname>nodeType</varname></term>
<listitem>
<para>Gets the type of the node. One of the predefined XML_xxx_NODE constants</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.parentnode">
<term><varname>parentNode</varname></term>
<listitem>
<para>The parent of this node</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.childnodes">
<term><varname>childNodes</varname></term>
<listitem>
<para>
A <classname>DOMNodeList</classname> that contains all
children of this node. If there are no children, this is an empty
<classname>DOMNodeList</classname>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.firstchild">
<term><varname>firstChild</varname></term>
<listitem>
<para>
The first child of this node. If there is no such node, this
returns &null;.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.lastchild">
<term><varname>lastChild</varname></term>
<listitem>
<para>The last child of this node. If there is no such node, this returns &null;.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.previoussibling">
<term><varname>previousSibling</varname></term>
<listitem>
<para>
The node immediately preceding this node. If there is no such
node, this returns &null;.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.nextsibling">
<term><varname>nextSibling</varname></term>
<listitem>
<para>
The node immediately following this node. If there is no such
node, this returns &null;.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.attributes">
<term><varname>attributes</varname></term>
<listitem>
<para>
A <classname>DOMNamedNodeMap</classname> containing the
attributes of this node (if it is a <classname>DOMElement</classname>)
or &null; otherwise.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.ownerdocument">
<term><varname>ownerDocument</varname></term>
<listitem>
<para>The <classname>DOMDocument</classname> object associated with this node.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.namespaceuri">
<term><varname>namespaceURI</varname></term>
<listitem>
<para>The namespace URI of this node, or &null; if it is unspecified.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.prefix">
<term><varname>prefix</varname></term>
<listitem>
<para>The namespace prefix of this node, or &null; if it is unspecified.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.localname">
<term><varname>localName</varname></term>
<listitem>
<para>Returns the local part of the qualified name of this node.</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.baseuri">
<term><varname>baseURI</varname></term>
<listitem>
<para>
The absolute base URI of this node or &null; if the implementation
wasn't able to obtain an absolute URI.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="domnode.props.textcontent">
<term><varname>textContent</varname></term>
<listitem>
<para>This attribute returns the text content of this node and its descendants.</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
<!-- {{{ See also -->
<section role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link xlink:href="&url.spec.dom3.node;">W3C specification of Node</link></member>
</simplelist>
</para>
</section>
<!-- }}} -->
</partintro>
&reference.dom.entities.domnode;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|