on 06-01-2015 6:25 AM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.