on 11-18-2010 10:24 PM
Hi
I have a requirement where in based on a condition the target structure's line item segment should have multiple occurrences. But the current Target structure which is EDI XSD has only 0..1 occurance which i need to change it to 0 to Unbound, which i am not able to do by going into the edit mode of the external definition. What options do i have to change the structure?
Hi Kalyan,
Please open the XSD with text pad. Search (Ctrl+F) with the <fieldname>. You will find like below.
<xsd:element name="<fieldname>" type="XXXXXX" minOccurs="0" form="XXXXX">.
change it to like below.
<xsd:element name="<fieldname>" type="XXXXXX" minOccurs="0" maxOccurs="unbounded" form="XXXXX"/>.
SAVE it and reupload it. You can find that the occurrence is changed.
Thanks,
Nabendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalyan,
The occurence of the XML element is defined with the help of XML attributes minOccurs & maxOccurs.
Since you want the occurence to be 0..unbounded,
Add the "maxOccurs" attribute to your element definition as below:
<xs:element minOccurs="0" maxOccurs="unbounded" name="S_LIN">
This will solve your problem
Regards, Gaurav.
Hi Kalyan,
Try with this,
<xs:element name="S_LIN" minOccurs="0" maxOccurs="unbounded">
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you dont find the maxOccurs,add it <xsd:element name="Data" minOccurs="0" maxOccurs="unbounded">
Regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use XMLspy or stylo studio tool and follow the process which was told by one of the contributor.
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.