2011-10-19 55 views
5

我安裝了Magento。當我用eclipse或Zend Studio打開它時,它顯示了一堆與XML相關的錯誤。我不太確定它爲什麼會發生。任何人都知道如何解決這個問題?Magento 1.6 XML錯誤

以下是前幾個錯誤。但是,大約有212個錯誤和1225個警告。

-------------------------------------------------------------------------------------- 
Description Resource Path Location Type 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Api/etc line 111 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Catalog/etc line 956 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/CatalogInventory/etc line 76 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Checkout/etc line 571 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Customer/etc line 252 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Directory/etc line 64 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/GiftMessage/etc line 88 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl.xml /Magento/app/code/core/Mage/Sales/etc line 871 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'binding' is not valid with respect to its type, 'NCName'. wsdl2.xml /Magento/app/code/core/Mage/Api/etc line 167 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'wsdl:binding' is not valid with respect to its type, 'NCName'. wsi.xml /Magento/app/code/core/Mage/Api/etc line 290 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'wsdl:binding' is not valid with respect to its type, 'NCName'. wsi.xml /Magento/app/code/core/Mage/Catalog/etc line 1531 XML Problem 
cvc-attribute.3: The value '{{var wsdl.handler}}Binding' of attribute 'name' on element 'wsdl:binding' is not valid with respect to its type, 'NCName'. wsi.xml /Magento/app/code/core/Mage/CatalogInventory/etc line 107 XML Problem 

感謝,

+0

與CE 1.9.1有類似的問題 – tzvi

回答

0

對不起,不是完整的回答你的問題:

  • 你試圖尋找到窗口>首選項>驗證

我不知道如何觸摸exaclty刪除這些錯誤和警告。

取消激活XML驗證器應該可以做到這一點,但我想這是不可接受的,因爲我們希望驗證器正在運行。

也許有人知道如何編寫規則(XML驗證器>設置>添加規則)將刪除錯誤。