mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324735 c90b9560-bf6c-de11-be94-00142212c4b1
52 lines
1.8 KiB
XML
52 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
|
<refentry xml:id="function.domdocument-get-element-by-id" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>DomDocument::get_element_by_id</refname>
|
|
<refpurpose>
|
|
Searches for an element with a certain id
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>domelement</type><methodname>DomDocument::get_element_by_id</methodname>
|
|
<methodparam><type>string</type><parameter>id</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
This function is similar to
|
|
<function>domdocument_get_elements_by_tagname</function> but searches for
|
|
an element with a given id. According to the DOM standard this requires a
|
|
DTD which defines the attribute ID to be of type ID, though the current
|
|
implementation simply does an xpath search for <literal>"//*[@ID = '%s']"</literal>. This
|
|
does not comply to the DOM standard which requires to return null if it
|
|
is not known which attribute is of type id. This behaviour is likely to
|
|
be fixed, so do not rely on the current behaviour.
|
|
</para>
|
|
<para>
|
|
See also <function>domdocument_get_elements_by_tagname</function>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- 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:"~/.phpdoc/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
|
|
-->
|