phpDocumentor lodel
[ class tree: lodel ] [ index: lodel ] [ all elements ]

Procedural File: xmlparser.php

Source Location: /lodel/scripts/xmlparser.php

Page Details

Fichier du parser XML - Analyse les éléments d'un document XML

PHP versions 4 et 5

LODEL - Logiciel d'Edition ELectronique.

Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse

Home page: http://www.lodel.org

E-Mail: lodel@lodel.org

All Rights Reserved

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Author:  Jean Lamy
Author:  Ghislain Picard
Version:  CVS:$Id:
Copyright:  2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
Copyright:  2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
Since:  Fichier ajouté depuis la version 0.8
Includes
require_once ('func.php') [line 46]
[ Top ]


Functions
array_last  [line 55]

le array_last( array &$arr  )

Retourne le dernier élément d'un tableau

Parameters:
array   &$arr:  le tableau passé par référence

API Tags:
Return:  dernier élément du tableau


[ Top ]
rebuild_opentag  [line 101]

void rebuild_opentag( string $name, array $attrs  )

Reconstruit un tag ouvert

Construit correctement un tag

Parameters:
string   $name:  le nom du tag
array   $attrs:  les attributs du tags


[ Top ]
xml_parse_into_struct_ns  [line 71]

void xml_parse_into_struct_ns( string &$text, array &$values, array &$index  )

Analyse une structure XML

Analyse le fichier XML $text et le place dans deux tableaux : le premier $index contient des pointeurs sur la position des valeurs correspondantes dans le tableau $values. Ces deux paramètres sont passés par références.

Parameters:
string   &$text:  les données à parser
array   &$values: 
array   &$index:  contient des pointeurs sur la position des valeurs correspondantes dans le tableau values


[ Top ]
xml_parse_into_struct_ns_characterHandler  [line 178]

void xml_parse_into_struct_ns_characterHandler( resource $parser, string $data  )

Analyse les données contenues dans un élément

Parameters:
resource   $parser:  le parser XML
string   $data:  les données


[ Top ]
xml_parse_into_struct_ns_endElement  [line 147]

void xml_parse_into_struct_ns_endElement( resource $parser, string $name  )

Analyse la fin d'un élément XML

Parameters:
resource   $parser:  le parser XML
string   $name:  le nom de l'élément


[ Top ]
xml_parse_into_struct_ns_startElement  [line 118]

void xml_parse_into_struct_ns_startElement( resource $parser, string $name, array $attrs  )

Analyse le début d'élément XML

Parameters:
resource   $parser:  le parser XML
string   $name:  le nom de l'élément
array   $attrs:  les attributs


[ Top ]


Documentation generated on Wed, 29 Aug 2007 14:30:06 +0200 by phpDocumentor 1.4.0a2