| At line 7 changed 1 line. |
| * Right click on the project and choose “New -> XML Schema…” |
| * Right click on the Source Packages (let's use "com.sun.customeencoder" for example), and choose "New -> XML Schema..." |
| At line 9 changed 1 line. |
| * Let’s name this custom defined structure as “customDefined1”. This will create the customDefined1.xsd file in the specified location. |
| * Let’s name this custom defined structure as "customDefined1”. This will create the customDefined1.xsd file in the specified location. |
| At line 13 changed 1 line. |
| * Make sure the “Apply to All Referenced Schemas” checkbox is checked. |
| * Make sure the "Apply to All Referenced Schemas" checkbox is checked. |
| At line 15 changed 1 line. |
| * As an example, we have following structure defined: the root node contains 2 groups nodes “group1” and “group2” which are delimited by the delimiter of ‘|’. The first group node “group1” contains 2 delimited fields “delimited1” and “delimited2” which are delimited by the delimiter of ‘,’, and the second group node “group2” contains 2 fixed-length fields “fixed1” and “fixed2” which are 10 and 15 bytes long, respectively) with custom encoding information. |
| * As an example, we have following structure defined: |
| At line 17 changed 1 line. |
| Following is the “Design” view of this custom defined structure. |
| the root node contains 2 groups nodes "group1" and "group2" which are delimited by the delimiter of ‘|’. |
| At line 19 added 5 lines. |
| The first group node "group1” contains 2 delimited fields "delimited1” and "delimited2” which are delimited by the delimiter of ‘,’, |
| and the second group node "group2” contains 2 fixed-length fields "fixed1” and "fixed2” which are 10 and 15 bytes long, respectively, with custom encoding information. |
| \\ |
| Following is the "Design” view of this custom defined structure. |
| \\ |
| At line 131 changed 1 line. |
| The root node is selected as the “Top” node, and there are 2 levels of delimiters defined there as follows: |
| The root node is selected as the "Top” node, and there are 2 levels of delimiters defined there as follows: |
| At line 140 changed 1 line. |
| * As an example, we create a text delimited input data file “customDefined1.dat” with data “a,b|0123456789|abcde12345ABCDE”. |
| * As an example, we create a text delimited input data file "customDefined1.dat” with data "a,b|0123456789|abcde12345ABCDE”. |
| At line 144 changed 1 line. |
| * Select input data file “customDefined1.dat” in the "Test Encoding" dialog. |
| * Select input data file "customDefined1.dat” in the "Test Encoding" dialog. |
| At line 146 changed 1 line. |
| * After successful decoding, you should see the decoded XML output as “customDefined1.xml" |
| * After successful decoding, you should see the decoded XML output as "customDefined1.xml" |
| At line 164 changed 1 line. |
| * Any questions/feebacks? |
| Email: [soabi-encoders@sun.com|mailto:soabi-encoders@sun.com] |