cynic Thu Jan 25 18:18:55 2001 EDT
Added files:
/phpdoc/cs/functions domxml.xml
Log:
translated (win-1250)
Index: phpdoc/cs/functions/domxml.xml
+++ phpdoc/cs/functions/domxml.xml
<reference id="ref.domxml">
<title>DOM XML funkce</title>
<titleabbrev>DOM XML</titleabbrev>
<partintro>
<simpara>
Tyto funkce jsou p��stupn� pouze pokud bylo PHP zkonfigurov�no s volbou
<option role="configure">--with-dom=[DIR]</option>, s vyu�it�m GNOME xml
knihovny. Je pot�eba nejm�n� libxml-2.0.0 (ne betaverze). Tyto funkce byly
p�id�ny v PHP 4.
</simpara>
<simpara>
Tento modul definuje n�sleduj�c� konstanty:
</simpara>
<table>
<title>XML konstanty</title>
<tgroup cols="3">
<thead>
<row>
<entry>Konstanta</entry>
<entry>Hodnota</entry>
<entry>Popis</entry>
</row>
</thead>
<tbody>
<row>
<entry>XML_ELEMENT_NODE</entry>
<entry>1</entry>
<entry></entry>
</row>
<row>
<entry>XML_ATTRIBUTE_NODE</entry>
<entry>2</entry>
<entry></entry>
</row>
<row>
<entry>XML_TEXT_NODE</entry>
<entry>3</entry>
<entry></entry>
</row>
<row>
<entry>XML_CDATA_SECTION_NODE</entry>
<entry>4</entry>
<entry></entry>
</row>
<row>
<entry>XML_ENTITY_REF_NODE</entry>
<entry>5</entry>
<entry></entry>
</row>
<row>
<entry>XML_ENTITY_NODE</entry>
<entry>6</entry>
<entry></entry>
</row>
<row>
<entry>XML_PI_NODE</entry>
<entry>7</entry>
<entry></entry>
</row>
<row>
<entry>XML_COMMENT_NODE</entry>
<entry>8</entry>
<entry></entry>
</row>
<row>
<entry>XML_DOCUMENT_NODE</entry>
<entry>9</entry>
<entry></entry>
</row>
<row>
<entry>XML_DOCUMENT_TYPE_NODE</entry>
<entry>10</entry>
<entry></entry>
</row>
<row>
<entry>XML_DOCUMENT_FRAG_NODE</entry>
<entry>11</entry>
<entry></entry>
</row>
<row>
<entry>XML_NOTATION_NODE</entry>
<entry>12</entry>
<entry></entry>
</row>
<row>
<entry>XML_GLOBAL_NAMESPACE</entry>
<entry>1</entry>
<entry></entry>
</row>
<row>
<entry>XML_LOCAL_NAMESPACE</entry>
<entry>2</entry>
<entry></entry>
</row>
</tbody>
</tgroup>
</table>
<simpara>
Tento modul definuje n�kolik t��d. DOM XML funkce vrac� rozparsovan� strom
XML dokumentu, kde ka�d� uzel je objektem patr�c�m do jedn� z t�chto
t��d.
</simpara>
</partintro>
<!-- class Dom document -->
<!-- has member functions
array root([int doc_handle])
returns array of root nodes of this document. Array
elements are objects of class "Dom node" having properties of
"node" (resource), "type" (long), "name" (string)
and optionally "content" (string).
array children([ int node ])
returns an array of child nodes of this element. Array
elements are objects of class "Dom node" having properties
of "node" (resource), "type" (long), "name" (string)
and optionally "content" (string).
object add_root([int doc_handle,] string name)
Add a root node to document.
returns an object of class "Dom node" having properties
of "node" (resource), "type" (long), "name" (string)
and optionally "content" (string).
object intdtd([int doc_handle])
returns the DTD of document.
returns an object of class "Dtd" having properties
of "dtd" (resource), "sysid" (string), "name" (string)
and optionally "extid" (string).
string dumpmem([int doc_handle])
dumps document into string.
-->
<!-- class Dom node
object lastchild([int node])
returns Dom node object
array children([int node])
as above
object parent([ int node])
returns Dom node object
(parent of this node)
new_child
string getattr([int node,] string attrname)
get value of attribute named attrname
bool setattr([int node,] string attrname, string value)
set value of given attribute.
array attributes([int node])
returns associative array of (string name, string value)
pairs.
object node(string name)
creates a named Dom node object.
-->
<!-- class Dom Attribute
name
-->
<!-- class Dom Namespace
-->
<!-- class Dtd
-->
<refentry id="function.xmldoc">
<refnamediv>
<refname>xmldoc</refname>
<refpurpose>Vytvo�it DOM objekt z XML dokumentu</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>xmldoc</function></funcdef>
<paramdef>string <parameter>str</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
Tato funkce parsuje XML dokument v <parameter>str</parameter> a vrac�
objekt t��dy "Dom document", kter� m� valstnosti "doc" (resource), "version"
(string) and "type" (long).
</para>
</refsect1>
</refentry>
<refentry id="function.xmldocfile">
<refnamediv>
<refname>xmldocfile</refname>
<refpurpose>Vytvo�it DOM objekt z XML souboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>xmldocfile</function></funcdef>
<paramdef>string <parameter>filename</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
Parsuje XML dokument v souboru pojmenovan�m <parameter>filename</parameter>
a vrac� objekt t��dy "Dom document", kter� m� vlastnosti "doc" (resource),
"version" (string).
<!-- conspiciously the file attribute is missing? -->
</para>
</refsect1>
</refentry>
<refentry id="function.xmltree">
<refnamediv>
<refname>xmltree</refname>
<refpurpose>Vytvo�it strom PHP objekt� z XML dokumentu</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<funcsynopsis>
<funcprototype>
<funcdef>object <function>xmltree</function></funcdef>
<paramdef>string <parameter>str</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
Parsuje XML dokument v <parameter>str</parameter> a vrac� strom PHP objekt�.
</para>
</refsect1>
</refentry>
</reference>
<!--
TODO
domxml_root
domxml_add_root
domxml_dumpmem
domxml_attributes
domxml_getattr
domxml_setattr
domxml_children
domxml_new_child
domxml_node
domxml_new_xmldoc alias new_xmldoc
-->
<!-- 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
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->