Call trim on the tag as a trailing space breaks the end element.
XMLWriter::startElement
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
XMLWriter::startElement — Crée un élément
Description
Style orienté objet
XMLWriter
bool startElement
( string $name
)
Style procédural
bool xmlwriter_start_element
( resource $xmlwriter
, string $name
)
Commence un élément.
Liste de paramètres
- xmlwriter
-
Uniquement pour les appels procéduraux. La ressource XMLWriter qui a été modifiée. Cette ressource provient d'un appel à xmlwriter_open_uri() ou xmlwriter_open_memory().
- name
-
Le nom de l'élément.
Valeurs de retour
Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.
Voir aussi
- XMLWriter::endElement - Termine l'élément courant
- XMLWriter::writeElement - Écrit un élément
XMLWriter::startElement
marcuslists at brightonart dot co dot uk
16-Oct-2009 02:10
16-Oct-2009 02:10
