Magento 1.6 XML错误

use*_*130 5 xml eclipse install magento

我安装了Magento.当我用eclipse或Zend Studio打开它时,它会显示一堆与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
Run Code Online (Sandbox Code Playgroud)

谢谢,

小智 0

抱歉,不是您问题的完整答案:

  • 您是否尝试过查看“窗口”>“首选项”>“验证”

我不知道该怎么做才能消除这些错误和警告。

停用 XML 验证器应该可以解决问题,但我想这是不可接受的,因为我们希望该验证器运行。

也许有人知道如何编写一条规则(XML Validator > 设置 > 添加规则)来消除错误。