> -----Original Message----- > From: Rhett Sutphin [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 10:14 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] [src-gen] using bindings file to avoid naming > conflicts > > On Monday, June 30, 2003, at 01:49 AM, Claus Ibsen wrote: > > Using Castor v0.95 > > > > We have 27 .xsd files that is generated into .java code using Castor. > > Damm there are some naming conflicts and we have solved most of them by > > renaming the element names in the .xsd files. > > Are the XSDs in different namespaces? (I assume they are, otherwise > you'd have the same naming conflicts at the XML level.) If so, have > you considered building them into separate packages? See the > documentation for org.exolab.castor.builder.nspackages. No they are not in different namespace. They are all part of a standard message format with different content. So they all have the same roottag. > > Lately I wanted to check out the Castor bindings file but it fails. > > > > Basically I have to complex types with the same name but with different > > content. Therefore Castor generates two .java files with the same name > > and thus overwrites the previously generated. Sadly you don't get any > > warning from the source code generator that a file already exists!!! > > This is a flaw, to be sure. Yes sadly even if you do not use the disable warning flag. It should be easy to integrate into the src-gen code.
> > I have this compex element (Listing_List) I want to be renamed, so > > I don't have a java class naming conflict: > > > > <Message_Data> > > <Message_Body> > > <CompletePaidList> > > <Listing_List> > > ... > > > > Yes all the elements above are complexTypes. > > When you have a question like this, it is nice if you can provide a > schema fragment so that it is clear what the problem is. I'm going to > guess from your description that it is something like this: I'll add the files in the bottom of this mail. > <xsd:element name="CompletePaidList" type="CPLType"/> > > <xsd:complexType name="CPLType"/> > <xsd:sequence> > <xsd:element name="Listing_List" type="CPL_Listing_ListType"/> > </xsd:sequence> > </xsd:complexType> > > <xsd:complexType name="CPL_Listing_ListType"/> > <whatever/> > </xsd:complexType> > > If so, changing to 'type' mapping from 'element' mapping will probably > do what you want. This is done by setting > org.exolab.castor.builder.javaclassmapping=type in > castorbuilder.properties. Thanks for the info, will try it later. > > So my bindings file is: > > > > <cbf:elementBinding name="complexType:Listing_List"> > > <cbf:java-class name="My_Listing_List"/> > > </cbf:elementBinding> > > > > But it fails all the time. > > Again, you need to provide a schema fragment in order for someone to > diagnose why you're having trouble. This example will never work, > though, because it is saying "please alter the element binding for the > complexType named 'Listing_List'." There is no element binding for a > complexType on its own -- either use complexTypeBinding or provide the > name of an element. > > > I have tried a lot of combinations. Do you have to input the fully > > qualified path in the name? Or can it just be some kind of relative > > path? > > > > <cbf:complexTypeBinding name="complexType:Listing_List"> > > <cbf:java-class name="Damm"/> > > </cbf:complexTypeBinding> > > It needs to be the full pseudo-XPath path to the > element/attribute/complexType you want to bind. If you are dealing > with named complexTypes, those have to be at the top level, so this > example should work. Using the made-up schema above, the binding for > the Listing_List element could be > > <cbf:elementBinding name="CompletePaidList/Listing_List"/> > > or > > <cbf:elementBinding name="complexType:CPLType/Listing_List"/> > > depending on the desired scope of the effects. The first example would > apply only to the subelement Listing_List of the CompletePaidList > element (and then only if CompletePaidList were a top level element in > the XML doc). The second example applies to the Listing_List > subelement of any element of the type CPLType. Yes your second example does not work in my case. Warning the files are long. It�s the last file REC001.xsd that has the naming conflict I'll like to avoid - 'Listening_List'. So <cbf:elementBinding name="complexType:CompletePaidList/Listing_List"/> should work as the second example suggest. But it still fails. /Claus MessgeHead.xsd ============== <?xml version="1.0" encoding="gb2312"?> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by joker (ep) --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="Common.xsd"/> <xs:element name="Message_Head"> <xs:complexType> <xs:sequence> <xs:element ref="Message_Type"/> <xs:element name="Message_Description"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Message_Version" fixed="V1.0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Message_ID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Sender"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="18"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Receiver"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="18"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element ref="Create_Time"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> MessageData.xsd =============== <?xml version="1.0" encoding="GB2312"?> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by joker (ep) --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="MessageHead.xsd"/> <xs:include schemaLocation="DUT001.xsd"/> <xs:include schemaLocation="DUT002.xsd"/> <xs:include schemaLocation="DUT003.xsd"/> <xs:include schemaLocation="FRE001.xsd"/> <xs:include schemaLocation="FRE002.xsd"/> <xs:include schemaLocation="FRE003.xsd"/> <xs:include schemaLocation="FRE004.xsd"/> <xs:include schemaLocation="FRE005.xsd"/> <xs:include schemaLocation="FRE006.xsd"/> <xs:include schemaLocation="FRE007.xsd"/> <xs:include schemaLocation="MES001.xsd"/> <xs:include schemaLocation="MES002.xsd"/> <xs:include schemaLocation="MES003.xsd"/> <xs:include schemaLocation="DEB001.xsd"/> <xs:include schemaLocation="DEB002.xsd"/> <xs:include schemaLocation="DEB003.xsd"/> <xs:include schemaLocation="REC001.xsd"/> <xs:include schemaLocation="REC002.xsd"/> <xs:include schemaLocation="COM001.xsd"/> <xs:include schemaLocation="COM002.xsd"/> <xs:include schemaLocation="PAY001.xsd"/> <xs:include schemaLocation="PAY002.xsd"/> <xs:include schemaLocation="PAY003.xsd"/> <xs:element name="Message_Data"> <xs:annotation> <xs:documentation/> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element ref="Message_Head"> <xs:annotation> <xs:documentation/> </xs:annotation> </xs:element> <xs:element name="Message_Body"> <xs:annotation> <xs:documentation/> </xs:annotation> <xs:complexType> <xs:choice> <xs:element ref="DutyForm"/> <xs:element ref="DutyFormPrinted"/> <xs:element ref="DutyFormPaid"/> <xs:element ref="FreezeRequest"/> <xs:element ref="FreezeSuccess"/> <xs:element ref="FreezeFailure"/> <xs:element ref="FreezeConfirmation"/> <xs:element ref="FreezeCancellation"/> <xs:element ref="FreezeCancellationSuccess"/> <xs:element ref="FreezeCancellationFailure"/> <xs:element ref="PayRequest"/> <xs:element ref="PaySuccess"/> <xs:element ref="PayFailure"/> <xs:element ref="MessageCheckList"/> <xs:element ref="MessageResendRequestList"/> <xs:element ref="MessageConfirmationList"/> <xs:element ref="DebtRequestList"/> <xs:element ref="DebtResultList"/> <xs:element ref="DebtCheckFailureList"/> <xs:element ref="CompletePaidList"/> <xs:element ref="ReceivableList"/> <xs:element ref="CompanyAccountApplication"/> <xs:element ref="CompanyAccountAuditResult"/> </xs:choice> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="project_id" type="xs:string" fixed="SGEP"/> <xs:attribute name="project_ver" type="xs:string" fixed="V1.0"/> </xs:complexType> </xs:element> </xs:schema> Common.xsd ========== <?xml version="1.0" encoding="GB2312"?> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by joker (ep) --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Entry_ID"> <xs:annotation> <xs:documentation>���ص���</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="18"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Duty_Flag"> <xs:annotation> <xs:documentation>�˲�˰���</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> <xs:enumeration value="-"/> <xs:enumeration value="/"/> <xs:enumeration value="#"/> <xs:enumeration value="D"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Tax_Type"> <xs:annotation> <xs:documentation>˰��</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Tax_ID"> <xs:annotation> <xs:documentation>˰�����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Gua_ID"> <xs:annotation> <xs:documentation>�����ĺ�</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="12"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ID_CHK"> <xs:annotation> <xs:documentation>����У����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Real_Tax" type="xs:double"> <xs:annotation> <xs:documentation>˰�ѽ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Gua_Seq_ID"> <xs:annotation> <xs:documentation>��֤�������</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Book_No"> <xs:annotation> <xs:documentation>�ص����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="12"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="P_Date" type="Date_Type"> <xs:annotation> <xs:documentation>˰����ӡ����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="P_Limit" type="Date_Type"> <xs:annotation> <xs:documentation>�ɿ�����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="C_Date" type="Date_Type"> <xs:annotation> <xs:documentation>��������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Delay_Day" type="xs:int"> <xs:annotation> <xs:documentation>��������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Cancel_ER"> <xs:annotation> <xs:documentation>ע����Ա</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="6"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Dutyform_No" type="xs:long"> <xs:annotation> <xs:documentation>�ֳ�˰�����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Delay_Mark"> <xs:annotation> <xs:documentation>���ɣ�������־</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Duty_Print"> <xs:annotation> <xs:documentation>��ӡ��־</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Tax_Types"> <xs:annotation> <xs:documentation>һ���ɵ��Զ�˰��</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Guar_Curr"> <xs:annotation> <xs:documentation>��֤�����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Log_Date" type="Date_Type"> <xs:annotation> <xs:documentation>��֤����������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Period" type="Date_Type"> <xs:annotation> <xs:documentation>����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Proc_Mark"> <xs:annotation> <xs:documentation>��ע�������</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Trans_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>������ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Pre_Entry_ID"> <xs:annotation> <xs:documentation>Ԥ¼���</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="18"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="I_E_Port"> <xs:annotation> <xs:documentation>�����ڰ�</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Dec_Port"> <xs:annotation> <xs:documentation>�걨�ڰ�</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Actual_Payer_Cus_Code" type="Enterprise_Cus_Code_Type"> <xs:annotation> <xs:documentation>ʵ�ʽɿλ���ش���</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Actual_Payer_Org_Code" type="Organization_Code_Type"> <xs:annotation> <xs:documentation>ʵ�ʽɿλ��֯��������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Actual_Payer_Name"> <xs:annotation> <xs:documentation>ʵ�ʽɿλ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="40"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Titled_Trader_Cus_Code" type="Enterprise_Cus_Code_Type"> <xs:annotation> <xs:documentation>��ӡ�ɿλ���ر���</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Titled_Trader_Org_Code" type="Organization_Code_Type"> <xs:annotation> <xs:documentation>��ӡ�ɿλ��֯��������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Titled_Trader_Name"> <xs:annotation> <xs:documentation>��ӡ�ɿλ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="40"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payment_Instructor_Cus_Code" type="Enterprise_Cus_Code_Type"> <xs:annotation> <xs:documentation>����������λ���ر���</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payment_Instructor_Org_Code" type="Organization_Code_Type"> <xs:annotation> <xs:documentation>����������λ��֯��������</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payment_Instructor_Name"> <xs:annotation> <xs:documentation>����������λ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="40"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Instruct_Mode"> <xs:annotation> <xs:documentation>�������ʽ</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Guaranteed_Payment"> <xs:annotation> <xs:documentation>���е���ԤԼ�����־</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> <xs:enumeration value="0"/> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payer_Subsidiary_Name"> <xs:annotation> <xs:documentation>�����л����������</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="42"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payer_Account_No" type="Account_No_Type"> <xs:annotation> <xs:documentation>�����ʺ�</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payer_Account_Name" type="Account_Name_Type"> <xs:annotation> <xs:documentation>�����ʺ�����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Subject_Level"> <xs:annotation> <xs:documentation>Ԥ�㼶��</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="32"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Subject_Code"> <xs:annotation> <xs:documentation>Ԥ���Ŀ</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Subject_Name"> <xs:annotation> <xs:documentation>Ԥ���Ŀ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="40"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Business_Function2"> <xs:annotation> <xs:documentation>ҵ�����2����ǰ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Special_Instruction"> <xs:annotation> <xs:documentation>����ָʾ(��ȡ�����·�ʽ)����ǰ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Income_Name"> <xs:annotation> <xs:documentation>�������</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="32"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Income_Sys"> <xs:annotation> <xs:documentation>����ϵͳ</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="32"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Withdraw_Trans_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>����Ԥ�۽�����ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Recon_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>������ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Message_Type"> <xs:annotation> <xs:documentation>��Ϣ����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="6"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Message_Amount" type="xs:long"> <xs:annotation> <xs:documentation>��Ϣ����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Create_Time" type="DateTime_Type"> <xs:annotation> <xs:documentation>��Ϣ����ʱ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Debt_List_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>ʵ��֪ͨ�嵥��ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payee_Congreg_BK_ID"> <xs:annotation> <xs:documentation>�տ��еIJ�������е�EDI�û�����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="11"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payee_Subsidiary_Code"> <xs:annotation> <xs:documentation>�տ��л�����д���</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="17"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payee_Subsidiary_Name"> <xs:annotation> <xs:documentation>�տ��л����������</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="42"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Payee_Account_No" type="Account_No_Type"> <xs:annotation> <xs:documentation>�տ��ʺ�</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payee_Account_Name" type="Account_Name_Type"> <xs:annotation> <xs:documentation>�տ��ʺ�����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Debt_Amount" type="xs:long"> <xs:annotation> <xs:documentation>����ʵ�۽�����</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Debt_Trans_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>ʵ�۽�����ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Debt_Request_Reason_Code"> <xs:annotation> <xs:documentation>ʵ��ԭ�����</xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Apply_Seq_No" type="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>������ˮ��</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Payment_Fee" type="xs:double"> <xs:annotation> <xs:documentation>֧�����</xs:documentation> </xs:annotation> </xs:element> <xs:simpleType name="Enterprise_Cus_Code_Type"> <xs:annotation> <xs:documentation>������ҵ��������</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:length value="10"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="Organization_Code_Type"> <xs:annotation> <xs:documentation>��֯������������</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:length value="9"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="Account_No_Type"> <xs:annotation> <xs:documentation>�ʺ�����</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:maxLength value="50"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="Account_Name_Type"> <xs:annotation> <xs:documentation>�����ʺ�����</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="Trans_Seq_No_Type"> <xs:annotation> <xs:documentation>�����������</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:length value="18"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="DateTime_Type"> <xs:annotation> <xs:documentation>����ʱ������</xs:documentation> </xs:annotation> <xs:restriction base="xs:dateTime"/> </xs:simpleType> <xs:simpleType name="Date_Type"> <xs:annotation> <xs:documentation>��������</xs:documentation> </xs:annotation> <xs:restriction base="xs:date"/> </xs:simpleType> <xs:group name="Tax_Fee_ID_Grp"> <xs:annotation> <xs:documentation>˰�ѵ���ʾ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Entry_ID"/> <xs:element ref="Duty_Flag"/> <xs:element ref="Tax_Type"/> <xs:element ref="Tax_ID"/> </xs:sequence> </xs:group> <xs:group name="Duty_List_Grp"> <xs:annotation> <xs:documentation>˰���б���Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:group ref="Tax_Fee_ID_Grp"/> <xs:element ref="Gua_Seq_ID" minOccurs="0"/> <xs:element ref="Gua_ID" minOccurs="0"/> <xs:element ref="ID_CHK" minOccurs="0"/> <xs:element ref="Book_No" minOccurs="0"/> <xs:element ref="Real_Tax"/> <xs:element ref="P_Date" minOccurs="0"/> <xs:element ref="P_Limit" minOccurs="0"/> <xs:element ref="C_Date" minOccurs="0"/> <xs:element ref="Delay_Day" minOccurs="0"/> <xs:element ref="Cancel_ER" minOccurs="0"/> <xs:element ref="Dutyform_No" minOccurs="0"/> <xs:element ref="Delay_Mark" minOccurs="0"/> <xs:element ref="Duty_Print" minOccurs="0"/> <xs:element ref="Tax_Types" minOccurs="0"/> <xs:element ref="Guar_Curr" minOccurs="0"/> <xs:element ref="Log_Date" minOccurs="0"/> <xs:element ref="Period" minOccurs="0"/> <xs:element ref="Proc_Mark" minOccurs="0"/> </xs:sequence> </xs:group> <xs:group name="Freeze_Comm_Info_Grp"> <xs:annotation> <xs:documentation>Ԥ�۹�����Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Entry_ID"/> <xs:element ref="Pre_Entry_ID" minOccurs="0"/> <xs:element ref="ID_CHK" minOccurs="0"/> <xs:element ref="I_E_Port" minOccurs="0"/> <xs:element ref="Dec_Port" minOccurs="0"/> <xs:element ref="Actual_Payer_Cus_Code" minOccurs="0"/> <xs:element ref="Actual_Payer_Org_Code"/> <xs:element ref="Actual_Payer_Name"/> <xs:element ref="Titled_Trader_Cus_Code" minOccurs="0"/> <xs:element ref="Titled_Trader_Org_Code" minOccurs="0"/> <xs:element ref="Titled_Trader_Name" minOccurs="0"/> <xs:element ref="Payment_Instructor_Cus_Code" minOccurs="0"/> <xs:element ref="Payment_Instructor_Org_Code"/> <xs:element ref="Payment_Instructor_Name"/> <xs:element ref="Instruct_Mode" minOccurs="0"/> </xs:sequence> </xs:group> <xs:group name="Message_Type_Info_Grp"> <xs:annotation> <xs:documentation>��Ϣ������Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Message_Type"/> <xs:element ref="Message_Amount"/> </xs:sequence> </xs:group> <xs:group name="Message_Info_Grp"> <xs:annotation> <xs:documentation>��Ϣ��Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Trans_Seq_No"/> <xs:element ref="Create_Time"/> </xs:sequence> </xs:group> <xs:group name="Debt_Request_Classification_Grp"> <xs:annotation> <xs:documentation>ʵ����𣨰��ʺŷ��ࣩ</xs:documentation> </xs:annotation> <xs:sequence> <xs:group ref="Payee_Account_Info_Grp"/> <xs:element ref="Debt_Amount"/> </xs:sequence> </xs:group> <xs:group name="Debt_List_Info_Grp"> <xs:annotation> <xs:documentation>ʵ���б���Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Debt_Trans_Seq_No"/> <xs:element ref="Trans_Seq_No"/> <xs:group ref="Tax_Fee_ID_Grp"/> <xs:element ref="Gua_ID" minOccurs="0"/> <xs:element ref="Real_Tax"/> <xs:element ref="Debt_Request_Reason_Code" minOccurs="0"/> </xs:sequence> </xs:group> <xs:group name="Payee_Account_Info_Grp"> <xs:annotation> <xs:documentation>�տ��ʺ���Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Payee_Congreg_BK_ID"/> <xs:element ref="Payee_Subsidiary_Code"/> <xs:element ref="Payee_Subsidiary_Name"/> <xs:element ref="Payee_Account_No"/> <xs:element ref="Payee_Account_Name"/> </xs:sequence> </xs:group> <xs:group name="Pay_Info_Grp"> <xs:annotation> <xs:documentation>һ�㸶����Ϣ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element ref="Payment_Fee"/> <xs:element name="Organization_Code" type="Organization_Code_Type"/> <xs:element ref="Payer_Subsidiary_Name"/> <xs:element ref="Payer_Account_No"/> <xs:element ref="Payer_Account_Name"/> <xs:group ref="Payee_Account_Info_Grp"/> <xs:element name="Business_Note" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:group> </xs:schema> REC001.xsd ========== <?xml version="1.0" encoding="GB2312"?> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Eric (easipass) --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:include schemaLocation="Common.xsd"/> <xs:element name="CompletePaidList"> <xs:annotation> <xs:documentation>REC001</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element ref="Debt_List_Seq_No"/> <xs:element name="Produce_Time" type="DateTime_Type"/> <xs:element ref="Payer_Subsidiary_Name"/> <xs:element name="Listing_List" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:group ref="Payee_Account_Info_Grp"/> <xs:element name="Listing_Type"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:length value="1"/> <xs:enumeration value="0"/> <xs:enumeration value="1"/> <xs:enumeration value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Listing_Object" type="xs:anyType"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
