Posted: Sat Mar 29, 2008 10:39 pm Post subject: Error when created mxsd from XML Schema.
Centurion
Joined: 25 Mar 2008 Posts: 125 Location: Chennai,India
Dear friends,
I get an error "Attributes cannot be used when Data Element Separation is 'FixedLength'. Physical format: 'TDS1'. FeeInquiryReq.mxsd FeeInquiryMsgSetPrj/FeeInquiryMsgSet" when I tried to create a message definition file from the following XML Schema. hence I cannot use the elements in the esql for compute node. PLease let me know to reolve it. The XML Schema is
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by sumit (HCl) -->
<?xml-stylesheet type="text/xsl" href="C:\TEST\ITTHogan.xml"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
<xsd:element name="FeeInqReq">
<xsd:complexType mixed="true">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="CICSTransactionId">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
XML attributes are unordered. Fixed length data must occur in a defined order. So the message model validator stops you from using attributes inside a complex type which has Data Element Separation 'Fixed Length'
If you are trying to convert XML input to fixed-length output I suggest that you create a variant of your input schema in which the attributes are replaced by a sequence of elements.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum