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, 10 Oct 2008

view this page in

XMLReader::isValid

(PHP 5 >= 5.1.2)

XMLReader::isValidIndicates if the parsed document is valid

Opis

bool XMLReader::isValid ( void )

Returns a boolean indicating if the document being parsed is currently valid.

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Przykłady

Example #1 Validating XML

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

// You must to use it
$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, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites