创建通道时XML出现问题
这是我的第一个XML代码,我正在尝试创建通道描述文档。请在下面查找XML和错误创建通道时XML出现问题,xml,cics,Xml,Cics,这是我的第一个XML代码,我正在尝试创建通道描述文档。请在下面查找XML和错误 <?xml version="1.0"?> <!-- <copyright notice="cics-lm-source-program" pids="5655-Y04" years="2009" crc="2720895662" >
<?xml version="1.0"?>
<!--
<copyright
notice="cics-lm-source-program"
pids="5655-Y04"
years="2009"
crc="2720895662" >
Licensed Materials - Property of IBM
5655-Y04
(C) Copyright IBM Corp. 2009 All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
@{[**]copyright.years=2009}
</copyright>
-->
<element name="schema">
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com/xmlns/prod/CICS/channel"
xmlns:tns="http://www.ibm.com/xmlns/prod/CICS/channel"
elementFormDefault="qualified">
<element name="channel">
<channel name="PMTRECONCHN" xmlns="http://www.ibm.com/xmlns/prod/CICS/channel">
<complexType>
<sequence>
<element name="container" maxOccurs="unbounded"
minOccurs="0">
<container name="PMTRECON" type="bit" use="required">
<complexType>
<sequence>
<element name="structure" minOccurs="0">
<structure location="//A.P1.CM.ZZ.STAGE.CALU.#000404.CPY(PMTRECON)"/>
<complexType>
<attribute name="location" type="string" use="required"/>
<attribute name="structure" type="string" use="optional"/>
</complexType>
</element>
</sequence>
<attribute name="name" type="tns:name16Type" use="required"/>
<attribute name="type" type="tns:typeType" use="required"/>
<attribute name="use" type="tns:useType" use="required"/>
</complexType>
</container>
</element>
</sequence>
<attribute name="name" type="tns:name16Type" use="optional" />
</complexType>
</channel>
</element>
<simpleType name="name16Type">
<restriction base="string">
<maxLength value="16"/>
</restriction>
</simpleType>
<simpleType name="typeType">
<restriction base="string">
<enumeration value="char"/>
<enumeration value="bit"/>
</restriction>
</simpleType>
<simpleType name="useType">
<restriction base="string">
<enumeration value="required"/>
<enumeration value="optional"/>
</restriction>
</simpleType>
</schema>
</element>
错误:DFHPI9027E XML解析器发现错误。“cvc.elt1:在文档的第25行和第24行找不到元素'element'的声明
请帮助我解决此问题。我对XML一无所知。您发布的XML是一个XML架构文档。这不是您用作频道描述文档的内容。您将创建一个符合本页所示架构的普通XML文档: 以下是示例频道说明文档:
<channel name=”fund” xmlns=http://www.ibm.com/xmlns/prod/CICS/channel>
<container name=”fundAdmin” type=”char” use=”required”>
<structure location=”//WSPOT01.CICSLAB.UTIL(FUNDADMN)”/>
</container>
<container name=”fundHistory” type=”char” use=”optional”>
<structure location=”//WSPOT01.CICSLAB.UTIL(FUNDHSRY)”/>
</container>
</channel>
您发布的XML是一个XML架构文档。这不是您用作频道描述文档的内容。您将创建一个符合本页所示架构的普通XML文档: 以下是示例频道说明文档:
<channel name=”fund” xmlns=http://www.ibm.com/xmlns/prod/CICS/channel>
<container name=”fundAdmin” type=”char” use=”required”>
<structure location=”//WSPOT01.CICSLAB.UTIL(FUNDADMN)”/>
</container>
<container name=”fundHistory” type=”char” use=”optional”>
<structure location=”//WSPOT01.CICSLAB.UTIL(FUNDHSRY)”/>
</container>
</channel>