Questions tagged [smooks]

Smooks is an extensible framework for building applications for processing XML and non XML data (CSV, EDI, Java etc) using Java.

Smooks is an extensible data integration Java framework for building XML and non-XML fragment-based applications.

178 questions
0
votes
1 answer

How to process each line of a CSV to a single XML output - WSO2/Smooks

TL;DR: I have a multline CSV and I want to process line by line and generate a different XML for each line. I have the following…
Victor Viola
  • 575
  • 1
  • 4
  • 14
0
votes
1 answer

How to Skip a field/component/sub-component without xmltag in Smooks

I want to process a baplie edi and however i don't need all the values coming in the EDI file. in such a case is there a way to skip a field/component/sub-component without the xmltag being displayed in the output unnecessarily. Example, …
Kathiresa
  • 75
  • 7
0
votes
0 answers

Smooks XML to XML Conversion - Issue with sequence of the XML structure

I am trying to convert below XML in to the another XML using Smooks config and the sequence of the Order_header and Order_line are not appearing as expected, I tried shuffling the freemaker sections up and down and nothing worked. Source XML…
Vinoth
  • 21
  • 1
  • 4
0
votes
1 answer

Maven packages smooks edifact models under wrong folder in fat jar on mvn assembly

I'm building a fat-JAR with maven containing Smooks and sevreal org.milyn.edi.unedifact mappings just like lots of other dependencies. As only one mapping model is allowed I choose inside main which one to use as follows Smooks smooks = new…
roka
  • 55
  • 7
0
votes
1 answer

How to access java library classes in Freemarker template

I am using smooks library for XML to XML transformation. Following is the smooks configuration. In freemarker template I want to access jdk library classes and also the classes that I have created in the project. Please let me know how I can achieve…
Suman Shil
  • 49
  • 5
0
votes
2 answers

Creating unique file name for XML to XML transformation via smooks

I have been working with smooks to try and process semi large XML files (170MB - 250MB). I managed to get it working and I can get it to process some of the elements in my XML fairly quickly. I believe I am running into an issue where the output…
John
  • 73
  • 7
0
votes
1 answer

WSo2 ESB Smooks Mediator Error

I am working on Smooks mediator logic in WSo2 ESB. I believe I have everything in place with my smooks configuration file, proxy, and jar files but when I execute my tests i am getting the following error: 2015-10-03 23:25:05,903 [-] [vfs-Worker-1]…
R Ryff
  • 37
  • 7
0
votes
0 answers

how to append child to element using smooks groovy

I am trying to use Smooks with Groovy to appendChild() to elements. So far I've been unable to do so. Sample input file
Wed Nov 27 13:45:28 EST 2013
0
votes
1 answer

WSO2 ESB processing a large file, stopping and restarting?

Is it possible in the WSO2 ESB to process a large file (with each line representing a single record/message), and stop or pause the processing within the file, then restart where it left off? (using the Smooks mediator and/or Iterate mediator, so…
RudyH
  • 1
  • 2
0
votes
1 answer

How to get xml element having namespace using java smooks and freemarker

I am new to "smooks and freemarker".I want access elements in xml document.I am getting this exception while acessing xml element.I am sending my code. Exception:- ------------ For "${...}" content: Expected a string or something automatically…
0
votes
0 answers

Processing message in MQ with Smooks in WSO2 ESB

I'm trying to transform message in Message Queue by using Smooks mediator. And I followed through this tutorial : http://wso2.com/library/tutorials/2011/06/perform-data-mapping-smooks-editor-wso2-carbon-studio/ But I got an error like this: …
NesToDre
  • 28
  • 2
0
votes
1 answer

construct xml using multiple inputs

We have a use case where we need to construct master xml from multiple sources. Initially we will get an xml from service and using information from this xml we make different Data base calls to save/get information and finally construct master xml…
user2997551
  • 109
  • 1
  • 7
0
votes
3 answers

How to transform csv to xml using smook mediator?

My proxy uses a vfs transport to read a csv file. Content of csv file 1,9,WSO2 I want to transform this csv content to as follows
Rakesh
  • 157
  • 1
  • 1
  • 8
0
votes
1 answer

How Smooks handle array of bytes

I have a class Vo that contains a member of type byte[] . now I want to write the whole object data of this class to a file and I use smooks API with below configuration : smookConfig.xml: