Creating an OMElement from an Array of elements , requires a custom xml root element, which will wrap all arguments.
Here is a sample code snippet to do that;
eg:
qname = new QName("csv"); // here user can provide prefered root element for his OMelement.
Here is a sample code snippet to do that;
String[] csvArray = csvList.toArray(new String[csvList.size()]);
OMElement csvOMElement = BeanUtil.getOMElement(qname, csvArray, null, false, null);
OMElement csvOMElement = BeanUtil.getOMElement(qname, csvArray, null, false, null);
eg:
qname = new QName("csv"); // here user can provide prefered root element for his OMelement.
No comments:
Post a Comment