我正在尝试在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')
答案 0 :(得分:1)
我知道这篇文章是从一段时间回来的,但我想我还是会发帖,希望能帮助别人节省时间和头痛。
我遇到了同样的问题,经过大量的调试后发现它是由于格式错误的XML而发生的。
如果您传递的Key值包含空格,则会触发此错误。
我通过删除可能给XML解析器带来麻烦的所有字符来解决它。
希望有所帮助。