cancel
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.

Regards,

Manjiri

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:

http://scn.sap.com/community/manufacturing/mii/blog/2014/10/01/sap-mii-illuminator-document-xsd

Best Regards,

Matthias

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 = { com.sap.lhcommon.common.VariantDataTypes.XML })

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????

former_member185280
Active Contributor
0 Kudos

Try looking at the com.sap.lhcommon.xml.XMLDataType class found in the  .

Regards,
Christian

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.