PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

XMLReader::lookupNamespace> <XMLReader::getParserProperty
Last updated: Fri, 03 Oct 2008

view this page in

XMLReader::isValid

(PHP 5 >= 5.1.2)

XMLReader::isValidIndique si le document analysé est valide

Description

bool XMLReader::isValid ( void )

Retourne un booléen indiquant si le document qui est en train d'être analysé est valide.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Validation XML

<?php
$xml 
XMLReader::open('test.xml');

// Vous devez faire ceci pour l'utiliser
$xml->setParserProperty(XMLReader::VALIDATEtrue);

var_dump($xml->isValid());
?>



add a note add a note User Contributed Notes
XMLReader::isValid
There are no user contributed notes for this page.

XMLReader::lookupNamespace> <XMLReader::getParserProperty
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites