Author: chabotc
Date: Tue Feb 24 00:07:24 2009
New Revision: 747228

URL: http://svn.apache.org/viewvc?rev=747228&view=rev
Log:
libxml_get_errors returns an array of LibXMLError objects and not strings, so 
use error->message to build up our xml error parsing report

Modified:
    incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php

Modified: incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php?rev=747228&r1=747227&r2=747228&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetSpecParser.php Tue Feb 24 
00:07:24 2009
@@ -38,12 +38,13 @@
       $errors = libxml_get_errors();
       $errorStr = '';
       foreach ($errors as $error) {
-        $errorStr .= $error . " \n";
+        $errorStr .= $error->message . " \n";
       }
       libxml_clear_errors();
       throw new GadgetSpecException("Error parsing gadget xml:\n$errorStr");
     }
-    //TODO: we could do a XSD schema validation here, but both the schema and 
most of the gadgets seem to have bugs, so it's not really practical yet (and 
slow)
+    //TODO: we could do a XSD schema validation here, but both the schema and 
most of the gadgets seem to have some form of schema
+    // violatons, so it's not really practical yet (and slow)
     // $doc->schemaValidate('gadget.xsd');
     $gadget = new GadgetSpec();
     $gadget->checksum = md5($xmlContent);


Reply via email to