0

我正在尝试在我的 Google 电子表格中插入一行。而其他功能,如计算行数、列数等工作正常;插入一行会给我'Namespace Error'

An exception of type DOMException was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stack trace below.

Stack Trace
   1. at exception origin in ...\library\Zend\Gdata\App\Base.php line 220
   2. at Zend_Gdata_App_Base->getDOM([object DOMDocument], 1, NULL)
      in ...\library\Zend\Gdata\Spreadsheets\Extension\Custom.php line 64
   3. at Zend_Gdata_Spreadsheets_Extension_Custom->getDOM([object DOMDocument])
      in ...\library\Zend\Gdata\Spreadsheets\ListEntry.php line 77
   4. at Zend_Gdata_Spreadsheets_ListEntry->getDOM()
      in ...\library\Zend\Gdata\App\Base.php line 329
   5. at Zend_Gdata_App_Base->saveXML()
      in ...\library\Zend\Gdata\Spreadsheets.php line 336
   6. at Zend_Gdata_Spreadsheets->insertRow(array('xxx', 'xxx', 'Normal', 'Lease', 'xxx', 'test', 'test'), '0Aoxxx2c')  
4

1 回答 1

1

我知道这篇文章是不久前的,但我想我还是会发帖,希望能节省别人的时间和头痛。

我遇到了同样的问题,经过大量调试后发现这是由于 XML 格式错误造成的。

如果您传递带有空格的键值,则会触发此错误。

我通过删除所有可能给 XML 解析器带来麻烦的字符来解决它。

希望有帮助。

于 2010-06-08T20:55:20.057 回答