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
2 answers

Using Smooks or Groovy with Java Camel to split/transform XML

Camel version 2.14 Smooks version 1.5.1 I got a message which i want to split and transform, but i need the id from the parent. So I thought about using Smooks, splitting the message, transforming and send each output to a queue. Which will be using…
J2B
  • 1,703
  • 2
  • 16
  • 31
0
votes
1 answer

Split an XML file by element using Smooks or whatever

I'm trying to do something which I consider a basic task here. I'm after a simple and tidy Java solution that can split XML content by element. I don't want to load the whole content in memory (i.e. I want to stream the elements) and I want to get…
Guido
  • 341
  • 5
  • 18
0
votes
1 answer

Read flat file line by line using smooks

I have a flat file as input. I need to read the flat file line by line using Smooks. Can anyone please give me suggestions or sample code how to do it.
user1019072
  • 299
  • 1
  • 7
  • 17
0
votes
2 answers

How do I stop smooks from escaping ampersand?

I've got a CSV to Java configuration file and inside one of the fields it has an ampersand. When I convert to a Java bean it adds & to the field. HOw do I prevent smooks from doing this? Here's the config file:
mike
  • 565
  • 1
  • 3
  • 18
0
votes
1 answer

EDI to Xml smooks conversion issue

Trying to convert EDI-to-xml through smooks. while converting to smooks xml there is some problem with field separator.
Nomad
  • 751
  • 4
  • 13
  • 34
0
votes
1 answer

How to transform a Java POJO to CSV using Smooks?

The title says it all. I couldn't find an example of a Smooks config mapping a POJO to a CSV.
Claude
  • 489
  • 4
  • 15
0
votes
2 answers

VFS options for tab delimited file in WSO2 ESB

Can someone guide on how to process tab-seperated input textfile using VFS transport in WSO2 ESB ? In general, how can I transform a tab-separated file into a structures format (XML for WSO2)? Using smooks mediator can easily parse comma delimited…
Madhup Srivastava
  • 446
  • 1
  • 6
  • 18
0
votes
3 answers

Smooks mediator for web logs

I am trying to use WSO2-ESB to parse a text file containing web logs and put it into a database. I have imported the file using VFS. Now I need to apply smooks mediator on this input and convert into XML. Structure of the input file is as…
0
votes
1 answer

Smooks File Write outputTo is not writing files in windows

I have following smook config defined.[1] Here i try to process large file, so want to write the output stream to different folder and from that folder again I want to pick and process. The issue I am facing here is, writer is not not writing files…
Ratha
  • 9,434
  • 17
  • 85
  • 163
0
votes
1 answer

fixed length reader returns empty set. Weird issue

I have written a sample smooks config using fixed length reader[1] with many fields. I see a weird issue here. That is, if i have the last field AnnualReportReturnedDate[8] in the configuration it does not return any sets. that is my set is null.…
Ratha
  • 9,434
  • 17
  • 85
  • 163
0
votes
1 answer

Fixed length reader doesn't return any sets in smooks?

I have a smooks configuration defined as:
Ratha
  • 9,434
  • 17
  • 85
  • 163
0
votes
2 answers

Can we do string manipulation and conditional check in smooks?

I want to manipulate a large text file, which is coming as TEXT and want to use smooks to manipulate it. The text file contains large number of lines. And from each line, i have to split the characters and get information out of that. Eg: i do…
Ratha
  • 9,434
  • 17
  • 85
  • 163
0
votes
1 answer

Java to CSV with Smooks

Is there a way Smooks could generate a CSV file based on a java instance? I am looking for something like: public static void main(String[] args){ Employee emp = new Employee(); emp.setName("abc"); emp.setSalary(12312); /* set other emp…
0
votes
0 answers

What can I do with xml duplicate elements with Smooks?

I m doing parse from xml to Java object. Here is the xml example: today shower tomorrow snow That is to say, there are same elements like…
0
votes
1 answer

Smooks - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

Currently, I am working with Smooks (1.5 version). In my last step, I changed names of packages in my project and the following error has been raised: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project…
mkuligowski
  • 1,544
  • 1
  • 17
  • 27