My XSD after some modifications by another team started giving the error:
Parse Error at line 33 column 14: s4s-elt-invalid-content.1: The content of '#AnonType_TxnHdrTransaction' is invalid. Element 'any' is invalid, misplaced, or occurs too often.
My XSD code is as follows:
<xs:element name="TxnHdr">
<xs:complexType>
<xs:any>
<xs:element name="TxnID" type="x:NumericVar15" />
<xs:element name="LogTxnID" type="x:NumericVar15" />
<xs:element name="MediaBalance" type="x:NumericVar8" />
<xs:element name="TxnDate" type="x:NumericFixed14" />
<xs:element name="TxnExtRef" type="x:AlphaNumericVar50" minOccurs="0" />
<xs:element name="TxnTypeX" type="x:NumericVar2" />
<xs:element name="TxnMode" type="x:NumericFixed1" />
<xs:element name="VoidStatus" type="x:NumericFixed1" />
<xs:element name="FailedStatus" type="x:NumericFixed1" />
<xs:element name="TxnSourceX" type="x:NumericVar2" />
<xs:element name="PurchAmt" type="x:NegPositiveDecimalVar21_4" />
<xs:element name="DiscAmt" type="x:NegPositiveDecimalVar21_4" />
<xs:element name="RdmAmt" type="x:NegPositiveDecimalVar21_4" />
<xs:element name="AdjAmt" type="x:NegPositiveDecimalVar21_4" />
<xs:element name="MediaTxnSeq" type="x:NumericVar3" minOccurs="0" />
</xs:any>
</xs:complexType>
</xs:element>