出现以下错误:
(配置):org.xml.sax.SAXException:与元素类型“名称”相关联的属性“ {1}”应使用引号。
在上传下面的xml文件时。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE UWLConfiguration PUBLIC "-//SAP//UWL1.0//EN" "uwl_configuration.dtd">
<UWLConfiguration version="1.0">
<ItemTypes>
<ItemType name= ”uwl.task.webflow.TS8880003.SAP_ECC_HumanResources” connector=”WebFlowConnector” defaultView=”DefaultView” defaultAction=”viewDetail” executionMode=”default”>
<ItemTypeCriteria systemId=”SAP_ECC_HumanResources” externalType=”TS8880003″ connector=”WebFlowConnector”/>
<Actions>
<Action name=”Approve” groupAction=”yes” handler=”UserDecisionHandler” returnToDetailViewAllowed=”yes” launchInNewWindow=”no”>
<Properties>
<Property name=”decisionKey” value=”1″ />
</Properties>
<Descriptions default=”Approve”/>
</Action>
<Action name=”Reject” groupAction=”yes” handler=”UserDecisionHandler” returnToDetailViewAllowed=”yes” launchInNewWindow=”no”>
<Properties>
<Property name=”decisionKey” value=”2″ />
</Properties>
<Descriptions default=”Reject”/>
</Action>
</Actions>
</ItemType>
</ItemTypes>
</UWLConfiguration>
答案 0 :(得分:0)
现在我收到新错误“根元素前面的文档中的标记必须格式正确”。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE UWLConfiguration PUBLIC "-//SAP//UWL1.0//EN" "uwl_configuration.dtd">
</UWLConfiguration version="1.0">
</ItemTypes>
<ItemType name="uwl.task.webflow.TS8880003.SAP_ECC_HumanResources connector"="WebFlowConnector" defaultView="DefaultView" defaultAction="viewDetail" executionMode="default">
<ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS8880003" connector="WebFlowConnector"/>
<Actions>
<Action name="Approve" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="1" />
</Properties>
<Descriptions default="Approve"/>
</Action>
<Action name="Reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="2" />
</Properties>
<Descriptions default="Reject"/>
</Action>
</Actions>
</ItemType>
</ItemTypes>
</UWLConfiguration>