cvs: peardoc /fr/package/xml/xml-util example.xml intro.xml /fr/package/xml/xml-util/xml-util apiversion.xml attributestostring.xml
createcdatasection.xml createcomment.xml createendelement.xml createstartelement.xml createtag.xml createtagfromarray.xml getdoctypedeclaration.xml
getxmldeclaration.xml isvalidname.xml replaceentities.xml splitqualifiedname.xml
| From: | Yannick TORRES | Date: | Sat, 06 Nov 2004 15:40:46 +0000 |
| Subject: | cvs: peardoc /fr/package/xml/xml-util example.xml intro.xml /fr/package/xml/xml-util/xml-util apiversion.xml attributestostring.xml createcdatasection.xml createcomment.xml createendelement.xml createstartelement.xml createtag.xml createtagfromarray.xml getdoctypedeclaration.xml getxmldeclaration.xml isvalidname.xml replaceentities.xml splitqualifiedname.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5081@lists.php.net to get a copy of this message | ||
yannick Sat Nov 6 10:40:46 2004 EDT
Added files:
/peardoc/fr/package/xml/xml-util/xml-util apiversion.xml
attributestostring.xml
createcdatasection.xml
createcomment.xml
createendelement.xml
createstartelement.xml
createtagfromarray.xml
createtag.xml
getdoctypedeclaration.xml
getxmldeclaration.xml
isvalidname.xml
replaceentities.xml
splitqualifiedname.xml
/peardoc/fr/package/xml/xml-util example.xml intro.xml
Log:
initial translation
http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml +++ peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.apiversion"> <refnamediv> <refname><function>XML_Util::apiVersion</function></refname> <refpurpose>Retourne la version de l'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.apiversion.desc"> &title.desc; <para> Retourne la version de l'API de XML_Util. </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.apiversion.return"> &title.returns; <para> <emphasis>string</emphasis> : version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.apiversion.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml +++ peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.attributestostring"> <refnamediv> <refname><function>XML_Util::attributesToString</function></refname> <refpurpose>Crée une représentation sous la forme d'une chaîne de caractères d'un attribut XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::attributesToString</function></funcdef> <paramdef>array <parameter>$attributes</parameter></paramdef> <paramdef>boolean <parameter> <optional>$sort = &true;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.desc"> &title.desc; <para> Crée une représentation sous la forme d'une chaîne de caractères d'un attribut </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.attributestostring.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif contenant les attributs </para> </listitem> <listitem> <para> <parameter>boolean $sort</parameter> - s'il faut classer les attributs alphabétiquement </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.return"> &title.returns; <para> <emphasis>string</emphasis> : chaîne de caractères représentant les attributs </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createcdatasection"> <refnamediv> <refname><function>XML_Util::createCDataSection</function></refname> <refpurpose>Crée une section CData</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createCDataSection</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.desc"> &title.desc; <para> Crée une section CDATA, en enfermant les données dans les balises <!CDATA[ et ]]>. Si vous utilisez une section CDATA dans un document XML, les entités ne doivent pas être remplacées dans ces sections. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createcdatasection.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - les données de la section CDATA. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.return"> &title.returns; <para> <emphasis>string</emphasis> : section CData </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createcomment"> <refnamediv> <refname><function>XML_Util::createComment</function></refname> <refpurpose>Crée un commentaire XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createComment</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createcomment.desc"> &title.desc; <para> Crée un commentaire XML en enfermant les données dans les balises <!-- et -->. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createcomment.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - données du commentaire. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcomment.return"> &title.returns; <para> <emphasis>string</emphasis> : le commentaire </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcomment.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createendelement"> <refnamediv> <refname><function>XML_Util::createEndElement</function></refname> <refpurpose>Crée un élément de fin</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createEndElement</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createendelement.desc"> &title.desc; <para> crée un élément de fin (</foo>) </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createendelement.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - le nom du tag </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createendelement.return"> &title.returns; <para> <emphasis>string</emphasis> : fin du tag XML </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createendelement.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createstartelement"> <refnamediv> <refname><function>XML_Util::createStartElement</function></refname> <refpurpose>Crée un élément de départ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createStartElement</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>array <parameter> <optional>$attributes = array()</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$namespaceUri = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.desc"> &title.desc; <para> Crée un élément de départ avec les attributs, les espaces de noms et ajoute 'xmlns' si nécessaire. (<pear foo="bar">) </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createstartelement.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag </para> </listitem> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif avec les attributs </para> </listitem> <listitem> <para> <parameter>string $namespaceUri</parameter> - URI de l'espace de nom si l'attribut xmlns doit être ajouté </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.return"> &title.returns; <para> <emphasis>string</emphasis> : tag d'ouverture xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createtagfromarray"> <refnamediv> <refname><function>XML_Util::createTagFromArray</function></refname> <refpurpose>Crée un tag depuis un tableau</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createTagFromArray</function></funcdef> <paramdef>array <parameter>$tag</parameter></paramdef> <paramdef>integer <parameter> <optional>$replaceEntities = XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.desc"> &title.desc; <para> Crée un tag depuis un tableau. Ceci est similaire à XML_Util::createTag(), mais plus flexible. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createtagfromarray.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $tag</parameter> - tableau contenant les informations à propos du tag </para> </listitem> <listitem> <para> <parameter>integer $replaceEntities</parameter> - si l'on doit remplacer les entités XML dans le contenu, celles contenues dans les sections CDATA ou si l'on ne doit pas les toucher. Les valeurs possibles sont &false;, XML_UTIL_REPLACE_ENTITIES ou XML_UTIL_CDATA_SECTION. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.return"> &title.returns; <para> <emphasis>string</emphasis> : tag xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.example1"> <title>Exemple d'utilisation</title> <example> <title>Création d'un tag avec XML_Util::createTagFromArray()</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/Util.php"; $tag = array( "namespace" => "xslt", "localPart" => "variable" "namespaceUri" => "http://www.w3.org/1999/XSL/Transform", "attributes" => array( "name" => "maVariable" ), "content" => "maValeur" ); $string = XML_Util::createTagFromArray($tag); ?> ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createtag.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createtag.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createtag.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createtag"> <refnamediv> <refname><function>XML_Util::createTag</function></refname> <refpurpose>Crée un tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createTag</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>array <parameter> <optional>$attributes = array()</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$content = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$namespaceUri = &null;</optional></parameter></paramdef> <paramdef>integer <parameter> <optional>$replaceEntities = XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createtag.desc"> &title.desc; <para> Crée un tag avec ces attributs, son espace de nom et ajoute 'xmlns' si nécessaire. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createtag.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag </para> </listitem> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif contenant les attributs </para> </listitem> <listitem> <para> <parameter>string $content</parameter> - chaîne de caractères représentant le contenu du tag </para> </listitem> <listitem> <para> <parameter>string $namespaceUri</parameter> - URI de l'espace de nom si l'attribut xmlns doit être ajouté </para> </listitem> <listitem> <para> <parameter>integer $replaceEntities</parameter> - si l'on doit remplacer les entités XML dans le contenu, celles contenues dans les sections CDATA ou si l'on ne doit pas les toucher. Les valeurs possibles sont &false;, XML_UTIL_REPLACE_ENTITIES ou XML_UTIL_CDATA_SECTION. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtag.return"> &title.returns; <para> <emphasis>string</emphasis> : tag xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtag.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml +++ peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.getdoctypedeclaration"> <refnamediv> <refname><function>XML_Util::getDocTypeDeclaration</function></refname> <refpurpose>Construit une déclaration de type de document</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::getDocTypeDeclaration</function></funcdef> <paramdef>string <parameter>$root</parameter></paramdef> <paramdef>mixed <parameter> <optional>$uri = &null;</optional></parameter></paramdef> <paramdef>mixed <parameter> <optional>$internalDtd = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.desc"> &title.desc; <para> Retourne une déclaration de type de document basée sur les paramètres. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.getdoctypedeclaration.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $root</parameter> - tag racine </para> </listitem> <listitem> <para> <parameter>mixed $uri</parameter> - URI de la définition de type du document ou un tableau contenant l'id publique ainsi que l'URI de la DTD </para> </listitem> <listitem> <para> <parameter>mixed $internalDtd</parameter> - définitions internes </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.return"> &title.returns; <para> <emphasis>string</emphasis> : déclaration de type du document </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml +++ peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.getxmldeclaration"> <refnamediv> <refname><function>XML_Util::getXMLDeclaration</function></refname> <refpurpose>Construit une déclaration xml</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::getXMLDeclaration</function></funcdef> <paramdef>string <parameter> <optional>$version = "1.0"</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$encoding = &null;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$standalone = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.desc"> &title.desc; <para> Retourne une déclaration XML basée sur les paramètres. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.getxmldeclaration.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $version</parameter> - version XML </para> </listitem> <listitem> <para> <parameter>string $encoding</parameter> - encodage XML </para> </listitem> <listitem> <para> <parameter>boolean $standalone</parameter> - si oui ou non le document est autonome </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.return"> &title.returns; <para> <emphasis>string</emphasis> : déclaration XML </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml +++ peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.isvalidname"> <refnamediv> <refname><function>XML_Util::isValidName</function></refname> <refpurpose>Vérifie un nom XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Util::isValidName</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.desc"> &title.desc; <para> Vérifie, si oui ou non une chaîne de caractères est un nom valide XML. En XML, les noms des tags et des attributs doivent suivre des règles strictes. Cette méthode peut être utilisée pour valider les noms que vous utilisez. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.isvalidname.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - chaîne de caractères à vérifier </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml +++ peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.replaceentities"> <refnamediv> <refname><function>XML_Util::replaceEntities</function></refname> <refpurpose>Remplace des entités XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::replaceEntities</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.desc"> &title.desc; <para> Dans les documents XML, vous n'êtes pas autorisé à utiliser & et <. Ils doivent être remplacés par leurs entités respectives. Cette méthode fait celà pour vous et de plus, remplace toutes les autres entités XML prédéfinies. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.replaceentities.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - chaîne de caractères, dans laquelle les entités doivent être remplacées </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.return"> &title.returns; <para> <emphasis>string</emphasis> : chaîne de caractères avec les entités remplacées </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml +++ peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.splitqualifiedname"> <refnamediv> <refname><function>XML_Util::splitQualifiedName</function></refname> <refpurpose>Découpe le nom qualifié</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>XML_Util::splitQualifiedName</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>string <parameter> <optional>$defaultNs = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.desc"> &title.desc; <para> Découpe le nom qualifié et retourne un tableau avec l'espace de nom ainsi que la partie locale. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.splitqualifiedname.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag qualifié (i.e. xsl:stylsheet) </para> </listitem> <listitem> <para> <parameter>string $defaultNs</parameter> - espace de nom par défaut utilisé dans la valeur retournée si le nom qualifié ne contient que la partie locale </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.return"> &title.returns; <para> <emphasis>array</emphasis> : tableau associatif contenant l'espace de nom ainsi que la partie locale du tag </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/example.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/example.xml +++ peardoc/fr/package/xml/xml-util/example.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.example"> <refnamediv> <refname>Exemple</refname> <refpurpose>Exemple d'utilisation de XML_Util</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-util.example.example1"> <title>Usage example</title> <simpara> Les exemples suivants montrent comment utiliser la plupart des méthodes de XML_Util. </simpara> <example> <title>Some basic examples</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/Util.php"; // création d'un tag XML $tag = XML_Util::createTag("xsl:stylesheet", array("version" => "1.0"), "Placez le contenu ici", "http://www.w3.org/1999/XSL/Transform"); // vérification du nom du tag $result = XML_Util::isValidName("my Tag"); if (PEAR::isError($result)) { print "nom XML invalide : " . $result->getMessage(); } else { print "Le nom du tag est valide."; } ?> ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/intro.xml +++ peardoc/fr/package/xml/xml-util/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction à XML_Util</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-util.intro.refsect1"> <title>Introduction à XML_Util</title> <para> XML_Util est une classe utile qui vous aidera à travailler avec des documents XML (et tout spécialement dans leurs créations). </para> <para> Toutes les méthodes de XML_Util peuvent être appelées statiquement, ce qui signifie que vous n'avez pas besoin d'instancier un objet XML_Util pour utiliser les méthodes fournies. </para> <para> La fonctionnalité de XML_Util réside dans la validation des noms des tags XML (ils doivent suivre des règles pour les noms des tags et des attributs) lors de la création de tags XML utilisant un espace de noms. </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 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 -->
http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml +++ peardoc/fr/package/xml/xml-util/xml-util/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.apiversion"> <refnamediv> <refname><function>XML_Util::apiVersion</function></refname> <refpurpose>Retourne la version de l'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.apiversion.desc"> &title.desc; <para> Retourne la version de l'API de XML_Util. </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.apiversion.return"> &title.returns; <para> <emphasis>string</emphasis> : version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.apiversion.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml +++ peardoc/fr/package/xml/xml-util/xml-util/attributestostring.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.attributestostring"> <refnamediv> <refname><function>XML_Util::attributesToString</function></refname> <refpurpose>Crée une représentation sous la forme d'une chaîne de caractères d'un attribut XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::attributesToString</function></funcdef> <paramdef>array <parameter>$attributes</parameter></paramdef> <paramdef>boolean <parameter> <optional>$sort = &true;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.desc"> &title.desc; <para> Crée une représentation sous la forme d'une chaîne de caractères d'un attribut </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.attributestostring.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif contenant les attributs </para> </listitem> <listitem> <para> <parameter>boolean $sort</parameter> - s'il faut classer les attributs alphabétiquement </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.return"> &title.returns; <para> <emphasis>string</emphasis> : chaîne de caractères représentant les attributs </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.attributestostring.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createcdatasection.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createcdatasection"> <refnamediv> <refname><function>XML_Util::createCDataSection</function></refname> <refpurpose>Crée une section CData</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createCDataSection</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.desc"> &title.desc; <para> Crée une section CDATA, en enfermant les données dans les balises <!CDATA[ et ]]>. Si vous utilisez une section CDATA dans un document XML, les entités ne doivent pas être remplacées dans ces sections. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createcdatasection.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - les données de la section CDATA. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.return"> &title.returns; <para> <emphasis>string</emphasis> : section CData </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcdatasection.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createcomment.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createcomment"> <refnamediv> <refname><function>XML_Util::createComment</function></refname> <refpurpose>Crée un commentaire XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createComment</function></funcdef> <paramdef>string <parameter>$data</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createcomment.desc"> &title.desc; <para> Crée un commentaire XML en enfermant les données dans les balises <!-- et -->. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createcomment.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $data</parameter> - données du commentaire. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcomment.return"> &title.returns; <para> <emphasis>string</emphasis> : le commentaire </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createcomment.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createendelement.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createendelement"> <refnamediv> <refname><function>XML_Util::createEndElement</function></refname> <refpurpose>Crée un élément de fin</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createEndElement</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createendelement.desc"> &title.desc; <para> crée un élément de fin (</foo>) </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createendelement.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - le nom du tag </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createendelement.return"> &title.returns; <para> <emphasis>string</emphasis> : fin du tag XML </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createendelement.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createstartelement.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createstartelement"> <refnamediv> <refname><function>XML_Util::createStartElement</function></refname> <refpurpose>Crée un élément de départ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createStartElement</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>array <parameter> <optional>$attributes = array()</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$namespaceUri = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.desc"> &title.desc; <para> Crée un élément de départ avec les attributs, les espaces de noms et ajoute 'xmlns' si nécessaire. (<pear foo="bar">) </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createstartelement.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag </para> </listitem> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif avec les attributs </para> </listitem> <listitem> <para> <parameter>string $namespaceUri</parameter> - URI de l'espace de nom si l'attribut xmlns doit être ajouté </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.return"> &title.returns; <para> <emphasis>string</emphasis> : tag d'ouverture xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createstartelement.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createtagfromarray.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createtagfromarray"> <refnamediv> <refname><function>XML_Util::createTagFromArray</function></refname> <refpurpose>Crée un tag depuis un tableau</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createTagFromArray</function></funcdef> <paramdef>array <parameter>$tag</parameter></paramdef> <paramdef>integer <parameter> <optional>$replaceEntities = XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.desc"> &title.desc; <para> Crée un tag depuis un tableau. Ceci est similaire à XML_Util::createTag(), mais plus flexible. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createtagfromarray.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $tag</parameter> - tableau contenant les informations à propos du tag </para> </listitem> <listitem> <para> <parameter>integer $replaceEntities</parameter> - si l'on doit remplacer les entités XML dans le contenu, celles contenues dans les sections CDATA ou si l'on ne doit pas les toucher. Les valeurs possibles sont &false;, XML_UTIL_REPLACE_ENTITIES ou XML_UTIL_CDATA_SECTION. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.return"> &title.returns; <para> <emphasis>string</emphasis> : tag xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtagfromarray.example1"> <title>Exemple d'utilisation</title> <example> <title>Création d'un tag avec XML_Util::createTagFromArray()</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/Util.php"; $tag = array( "namespace" => "xslt", "localPart" => "variable" "namespaceUri" => "http://www.w3.org/1999/XSL/Transform", "attributes" => array( "name" => "maVariable" ), "content" => "maValeur" ); $string = XML_Util::createTagFromArray($tag); ?> ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/createtag.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/createtag.xml +++ peardoc/fr/package/xml/xml-util/xml-util/createtag.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.createtag"> <refnamediv> <refname><function>XML_Util::createTag</function></refname> <refpurpose>Crée un tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::createTag</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>array <parameter> <optional>$attributes = array()</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$content = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$namespaceUri = &null;</optional></parameter></paramdef> <paramdef>integer <parameter> <optional>$replaceEntities = XML_UTIL_REPLACE_ENTITIES</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.createtag.desc"> &title.desc; <para> Crée un tag avec ces attributs, son espace de nom et ajoute 'xmlns' si nécessaire. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.createtag.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag </para> </listitem> <listitem> <para> <parameter>array $attributes</parameter> - tableau associatif contenant les attributs </para> </listitem> <listitem> <para> <parameter>string $content</parameter> - chaîne de caractères représentant le contenu du tag </para> </listitem> <listitem> <para> <parameter>string $namespaceUri</parameter> - URI de l'espace de nom si l'attribut xmlns doit être ajouté </para> </listitem> <listitem> <para> <parameter>integer $replaceEntities</parameter> - si l'on doit remplacer les entités XML dans le contenu, celles contenues dans les sections CDATA ou si l'on ne doit pas les toucher. Les valeurs possibles sont &false;, XML_UTIL_REPLACE_ENTITIES ou XML_UTIL_CDATA_SECTION. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtag.return"> &title.returns; <para> <emphasis>string</emphasis> : tag xml </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.createtag.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml +++ peardoc/fr/package/xml/xml-util/xml-util/getdoctypedeclaration.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.getdoctypedeclaration"> <refnamediv> <refname><function>XML_Util::getDocTypeDeclaration</function></refname> <refpurpose>Construit une déclaration de type de document</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::getDocTypeDeclaration</function></funcdef> <paramdef>string <parameter>$root</parameter></paramdef> <paramdef>mixed <parameter> <optional>$uri = &null;</optional></parameter></paramdef> <paramdef>mixed <parameter> <optional>$internalDtd = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.desc"> &title.desc; <para> Retourne une déclaration de type de document basée sur les paramètres. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.getdoctypedeclaration.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $root</parameter> - tag racine </para> </listitem> <listitem> <para> <parameter>mixed $uri</parameter> - URI de la définition de type du document ou un tableau contenant l'id publique ainsi que l'URI de la DTD </para> </listitem> <listitem> <para> <parameter>mixed $internalDtd</parameter> - définitions internes </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.return"> &title.returns; <para> <emphasis>string</emphasis> : déclaration de type du document </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getdoctypedeclaration.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml +++ peardoc/fr/package/xml/xml-util/xml-util/getxmldeclaration.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.getxmldeclaration"> <refnamediv> <refname><function>XML_Util::getXMLDeclaration</function></refname> <refpurpose>Construit une déclaration xml</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::getXMLDeclaration</function></funcdef> <paramdef>string <parameter> <optional>$version = "1.0"</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$encoding = &null;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$standalone = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.desc"> &title.desc; <para> Retourne une déclaration XML basée sur les paramètres. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.getxmldeclaration.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $version</parameter> - version XML </para> </listitem> <listitem> <para> <parameter>string $encoding</parameter> - encodage XML </para> </listitem> <listitem> <para> <parameter>boolean $standalone</parameter> - si oui ou non le document est autonome </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.return"> &title.returns; <para> <emphasis>string</emphasis> : déclaration XML </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.getxmldeclaration.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml +++ peardoc/fr/package/xml/xml-util/xml-util/isvalidname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.isvalidname"> <refnamediv> <refname><function>XML_Util::isValidName</function></refname> <refpurpose>Vérifie un nom XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>XML_Util::isValidName</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.desc"> &title.desc; <para> Vérifie, si oui ou non une chaîne de caractères est un nom valide XML. En XML, les noms des tags et des attributs doivent suivre des règles strictes. Cette méthode peut être utilisée pour valider les noms que vous utilisez. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.isvalidname.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - chaîne de caractères à vérifier </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.isvalidname.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml +++ peardoc/fr/package/xml/xml-util/xml-util/replaceentities.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.replaceentities"> <refnamediv> <refname><function>XML_Util::replaceEntities</function></refname> <refpurpose>Remplace des entités XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Util::replaceEntities</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.desc"> &title.desc; <para> Dans les documents XML, vous n'êtes pas autorisé à utiliser & et <. Ils doivent être remplacés par leurs entités respectives. Cette méthode fait celà pour vous et de plus, remplace toutes les autres entités XML prédéfinies. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.replaceentities.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - chaîne de caractères, dans laquelle les entités doivent être remplacées </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.return"> &title.returns; <para> <emphasis>string</emphasis> : chaîne de caractères avec les entités remplacées </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.replaceentities.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml +++ peardoc/fr/package/xml/xml-util/xml-util/splitqualifiedname.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.xml-util.splitqualifiedname"> <refnamediv> <refname><function>XML_Util::splitQualifiedName</function></refname> <refpurpose>Découpe le nom qualifié</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Util.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>XML_Util::splitQualifiedName</function></funcdef> <paramdef>string <parameter>$qname</parameter></paramdef> <paramdef>string <parameter> <optional>$defaultNs = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.desc"> &title.desc; <para> Découpe le nom qualifié et retourne un tableau avec l'espace de nom ainsi que la partie locale. </para> </refsect1> <refsect1 id="package.default.xml-util.xml-util.splitqualifiedname.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $qname</parameter> - nom du tag qualifié (i.e. xsl:stylsheet) </para> </listitem> <listitem> <para> <parameter>string $defaultNs</parameter> - espace de nom par défaut utilisé dans la valeur retournée si le nom qualifié ne contient que la partie locale </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.return"> &title.returns; <para> <emphasis>array</emphasis> : tableau associatif contenant l'espace de nom ainsi que la partie locale du tag </para> </refsect1> <refsect1 id="package.xml.xml-util.xml-util.splitqualifiedname.note"> &title.note; ¬e.shouldstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/example.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/example.xml +++ peardoc/fr/package/xml/xml-util/example.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.example"> <refnamediv> <refname>Exemple</refname> <refpurpose>Exemple d'utilisation de XML_Util</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-util.example.example1"> <title>Usage example</title> <simpara> Les exemples suivants montrent comment utiliser la plupart des méthodes de XML_Util. </simpara> <example> <title>Some basic examples</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/Util.php"; // création d'un tag XML $tag = XML_Util::createTag("xsl:stylesheet", array("version" => "1.0"), "Placez le contenu ici", "http://www.w3.org/1999/XSL/Transform"); // vérification du nom du tag $result = XML_Util::isValidName("my Tag"); if (PEAR::isError($result)) { print "nom XML invalide : " . $result->getMessage(); } else { print "Le nom du tag est valide."; } ?> ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-util/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-util/intro.xml +++ peardoc/fr/package/xml/xml-util/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-util.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction à XML_Util</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-util.intro.refsect1"> <title>Introduction à XML_Util</title> <para> XML_Util est une classe utile qui vous aidera à travailler avec des documents XML (et tout spécialement dans leurs créations). </para> <para> Toutes les méthodes de XML_Util peuvent être appelées statiquement, ce qui signifie que vous n'avez pas besoin d'instancier un objet XML_Util pour utiliser les méthodes fournies. </para> <para> La fonctionnalité de XML_Util réside dans la validation des noms des tags XML (ils doivent suivre des règles pour les noms des tags et des attributs) lors de la création de tags XML utilisant un espace de noms. </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 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 -->