cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion Agent missing Tags in Input Xml File

Former Member
0 Kudos

Hi All,

I have a request regarding Conversion Agent, we are working on Serializer to convert XML file to Text format as an output. We have issue in incoming input XML file where some of the tags are missing.When ever a tag is missing, we want to send that perticular Tag through Serializer to produce correct outPut structure. Below is the code I have done but it is giveing me error:

nstance InsiteSerializer = Serializer

{

contains =

[

ContentSerializer<optional, allow_empty_values>

{

data_holder = XPath("/MT_Insite_Req/s/DataConversionArea/s/SapMovementType");

transformers =

[

Resize(StaticInt(3)),

AddEmptyTagsTransformer(XPath("/MT_Insite_Req/s/DataConversionArea/s/SapMovementType"))

];

},

Best Regards,

Joseph

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

you have to check the existence of each tag in the input file, if the tag is missing then you have replace the blank with required name .

Hope the following link can provide you complete details.

http://help.sap.com/saphelp_nw70/helpdata/en/43/fc39c16bfb025ee10000000a1553f7/frameset.htm

Regards

Venkat