on 06-04-2007 2:35 AM
HI,
I am again posting this thread as none of the answers could help to solve this issues earlier.
to see it looks very simple scenario.
my file structure
<Startof file>
<field1>
<field2>
<field3>
<endof file>
every row has only one field.
all the fields are single occurence.
each field has different value.
for exampl
<start>
name:Jeff
age: 27
sex: male
<end>
thats it.. this is the file structure.
can any one tell me how to design the datatype structure. it looks simple.
but none of the suggestions worked.
still seeking solution.
regards,
Jeff
Jeff,
Please follow below the steps for creating Data type.
Create Data type : DT_SDNScenario
Right click on the root node and Click Sub-element create Startoffile node don't give any type over there and give the occurrence as 0 to unbounded.
Right click on the Startoffile Create Sub-element field1 with type String , occurrence as 1.
Right click on the Startoffile Create Sub-element field2 with type String , occurrence as 1
Right click on the Startoffile Create Sub-element field3 with type String , occurrence as 1
Hope this helps. If not reply back.
Finally you can see,
Type Occurrence
DT_SDNScenario
Startoffile 0...Unbounded
Field1 String 1..1
Field2 String 1..1
Field3 String 1..1
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jeff,
If you want to create DT for the below payload structure
- <Row>
<Name>Jeff</Name>
</Row>
- <Row>
<Name>27</Name>
</Row>
- <Row>
<Name>Male</Name>
</Row>
then
Create Row with no Type and occurrence as 0 to unbounded
Create Name(Sub-element of Row) with type String as occurrence as 1
Is this you needed?
Best Regards,
raj.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.