cancel
Showing results for 
Search instead for 
Did you mean: 

Java mapping Program requirement

binnari_rampullaiah2
Participant
0 Kudos

Hi friends I am new to javamapping.

I need to convert the source structure gml format data into target  xml format data.

source xml data will be in gml format.

I pasted both structures in this page. can any body help me how to write java mapping program for this requirement.

<assets>

      <assets>

            <gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:sw="http://www.gesmallworld.com/sw" xmlns:swgml="http://www.gesmallworld.com/swgml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gesmallworld.com/sw http://npcl-vm:8080/gss/resource/xsd/electric.pole.xsd?token=-1385992386">

  <gml:boundedBy>

                <gml:Null>This feature collection contains no geometry in the geographic world</gml:Null>

   

  </gml:boundedBy>

            <gml:featureMembers>

                                   <sw:electric.pole gml:id="swrefVsbiboVoidZ-0021electric-0021ed_pole-0021644350VtypeZpole">

                                    <sw:remarks/>

                                      <sw:asset_id/>

                                      <sw:material/>

                                       <sw:number/>

                                     <sw:usage>Primary</sw:usage>

                                    <sw:height/>

   

                                    <sw:treatment>Creosote</sw:treatment>

                                    <sw:cross_arm_count>0</sw:cross_arm_count>

                                 <sw:insulator_count>0</sw:insulator_count>

                               <sw:riser_count>0</sw:riser_count>

      

                              </sw:electric.pole>

                             <sw:electric.pole gml:id="swrefVsbiboVoidZ-0021electric-0021ed_pole-0021644351VtypeZpole">

                             <sw:remarks/>

                            <sw:asset_id/>

                            <sw:material>Concrete</sw:material>

                           <sw:number/>

                           <sw:usage>Primary</sw:usage>

                          <sw:height/>

                         <sw:treatment>ACZA</sw:treatment>

                        <sw:cross_arm_count>0</sw:cross_arm_count>

                       <sw:insulator_count>0</sw:insulator_count>

                     <sw:riser_count>0</sw:riser_count>

     

                     </sw:electric.pole>

                     </gml:featureMembers>

               </gml:FeatureCollection>

         </assets>

</assets>

The Target xml shoud be inthis format

<linkAssets>

      <assets>

            <asset>

  <asset_name>electric.pole</asset_name>

  <gml_id>swrefVsbiboVoidZ-0021electric-0021ed_pole-0021644350VtypeZpole</gml_id>

  <remarks/>

  <asset_id/>

  <material/>

  <number/>

  <usage>Primary<usage>

  <height/>

  <treatment>Creosote<treatment>

  <cross_arm_count>0<cross_arm_count>

  <insulator_count>0<insulator_count>

  <riser_count>0<riser_count>

  </asset>

  <asset>

  <asset_name>electric.pole</asset_name>

  <gml_id>swrefVsbiboVoidZ-0021electric-0021ed_pole-0021644351VtypeZpole</gml_id>

  <remarks/>

  <asset_id/>

  <sw:material>Concrete</sw:material>

  <number/>

  <usage>Primary<usage>

  <sw:height/>

  <treatment>Creosote<treatment>

  <cross_arm_count>0<cross_arm_count>

  <insulator_count>0<insulator_count>

  <riser_count>0<riser_count>

  </asset>

      

         </assets>

</linkAssets>

Accepted Solutions (0)

Answers (1)

Answers (1)

azharshaikh
Active Contributor
0 Kudos

Hello Binnari,

There are quite a few blogs available for Java Mapping. Please refer the following:

Beginners guide to Java mapping using DOM parser in SAP XI - Process Integration - SCN Wiki

Step-by-Step Guides - Mapping - Process Integration - SCN Wiki

Hope it helps

Regards,
Azhar