Re: [PHP] Validating XML Issue

2009-09-03 Thread Mattias Thorslund
I'd say your XML document is not well formed, but validity depends on whether it conforms to the rules expressed in a schema. Mattias Alice Wei wrote: Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet

[PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet here as follows: ?php $xml = XMLReader::open('hello.xml'); // You must to use it $xml-setParserProperty(XMLReader::VALIDATE, true); if ($xml-isValid())

RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
: php-general@lists.php.net Subject: Re: [PHP] Validating XML Issue I'd say your XML document is not well formed, but validity depends on whether it conforms to the rules expressed in a schema. Mattias Alice Wei wrote: Hi, This seems like a small problem that I have read from