我正在尝试使用Talend通用模式创建器(基于Java的工具)使用以下XML文件来创建模式。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sys="http://name/WebServices/KP/Tester/SystemOperations.xsd">
<soapenv:Header/>
<soapenv:Body>
<sys:userId></sys:userId>
<sys:password></sys:password>
<sys:idleTime></sys:idleTime>
</soapenv:Body>
</soapenv:Envelope>
但是我遇到了以下错误。
Can not import schema from invalid xml
org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:346)
...
Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/V/Desktop/Payload.xml; lineNumber: 1; columnNumber: 166; cvc-elt.1: Cannot find the declaration of element 'soapenv:Envelope'.