Showing results for 
Search instead for 
Did you mean: 

Custom Action block: XML output

Former Member
0 Kudos

I am trying to develop custom action block in java which will generate xml output for SAP MII. I can successfully create output in String,integer, Boolean for custom action block but for XML output i don't know how to generate.

In java there is no datatype for XML, So how we can map XML output to custom action block in sap mii?

Please help me in this issue.



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manjiri,

you don't need a custom action block. I also use xml as output.

You have to use XDSs to generate a valid XML-document.

Example to use XSDs in MII:

Best Regards,


Former Member
0 Kudos

Thank you for reply. But My query is specific to custom action block development using java code for MII . I know we can generate XML in MII .

I am developing custom action block for reading word file. My java output is string which is separated by delimiter. Instead of string i want to generate XML output for better performance.

@Outputs(names = { PARAM_OUTPUT_STRING }, types = { })

instance.setActionResult(PARAM_OUTPUT_STRING, sampleXml).

In this code , what should be sampleXml??

In java there is no data type called xml. So what input is expected for sampleXml variable????

Active Contributor
0 Kudos

Try looking at the class found in the  .


P.S. please mark questions answered. It helps those searching for the same information if they can see which threads have been answered in a big list of search results.