RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
ni.iu.edu > CC: 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: &

[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: setParserProperty(XMLReader::VALIDATE, true); if ($xml->isValid()) echo "true"; else echo "NOT"; ?> Here is the contents of hello.xml:

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 he