我安装了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
谢谢,
答案 0 :(得分:0)
对不起,不是您问题的完整答案:
我不知道如何删除这些错误和警告。
取消激活XML验证器应该可以解决这个问题,但我想这是不可接受的,因为我们希望这个验证器能够运行。
也许有人知道如何编写规则( XML验证器>设置>添加规则),这将删除错误。