Do XML schemas or DTDs exist for the .kjb and .ktr XML?

215 views
Skip to first unread message

Mike Krumlauf

unread,
Sep 12, 2012, 3:43:31 PM9/12/12
to kettle-d...@googlegroups.com
I am working on a project that needs to obtain information from the Kettle job and transformation files themselves.  Do XML schemas or DTDs exists for the XML formats for these file types?  I realize that each job or step plugin has its own XML format that is incorporated into the job or transform XML, so I am asking about just the "base" job or transformation XML.  

Thanks,
Mike Krumlauf

Matt Casters

unread,
Sep 12, 2012, 4:10:12 PM9/12/12
to kettle-d...@googlegroups.com
Hey Mike,

No schemas or DTD's unfortunately.  The furthest I went was describe the XML in our book "Pentaho Kettle Solutions".  The good news is that the XML structure is pretty simple.

Good luck!
Matt

2012/9/12 Mike Krumlauf <mjkru...@gmail.com>
I am working on a project that needs to obtain information from the Kettle job and transformation files themselves.  Do XML schemas or DTDs exists for the XML formats for these file types?  I realize that each job or step plugin has its own XML format that is incorporated into the job or transform XML, so I am asking about just the "base" job or transformation XML.  

Thanks,
Mike Krumlauf

--
You received this message because you are subscribed to the Google Groups "kettle-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/kettle-developers/-/p0yR1bdB8A4J.
To post to this group, send email to kettle-d...@googlegroups.com.
To unsubscribe from this group, send email to kettle-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.



--
Matt Casters <mcas...@pentaho.org>
Chief Data Integration, Kettle founder, Author of Pentaho Kettle Solutions (Wiley)
Fonteinstraat 70 - 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
Pentaho  -  Powerful Analytics Made Easy

Petar Jovanovic

unread,
Sep 12, 2012, 4:23:43 PM9/12/12
to kettle-d...@googlegroups.com
I had the same issue last year.
What you can do is to either check out the source code of Kettle and see what they produce (it's quite easy. classes ending with Meta have getXML methods that produce ktrs and kjbs) or you can manually in Spoon generate separate ktr, kjb to see the common parts.
If you are checking the source code, TransMeta and JobMeta classes have getXML methods where you can see which part of XML is generated for each of them.



I hope this helps, it helped me a lot.

Best




2012/9/12 Matt Casters <mcas...@pentaho.org>

Mike Krumlauf

unread,
Sep 12, 2012, 10:36:23 PM9/12/12
to kettle-d...@googlegroups.com
Thanks.  Could you please explain a bit more about "manually in Spoon generate separate ktr, kjb to see the common parts"?  

Petar Jovanovic

unread,
Sep 12, 2012, 11:57:07 PM9/12/12
to kettle-d...@googlegroups.com
Do you use Spoon tool? It´s a GUI tool for creating and running ETL tranformations(ktr) and jobs(kjb). You can find it inside the Kettle distributions (Spoon.bat)
So what you can do is to create the transformations and jobs inside this tool and save them as ktr and kjb files, respectively.
Then you can open these files, which are indeed xml structures, and check what are the common parts of different transformations or jobs.
To view this discussion on the web visit https://groups.google.com/d/msg/kettle-developers/-/fi1K5qIbO_YJ.

Mike Krumlauf

unread,
Sep 13, 2012, 7:53:12 AM9/13/12
to kettle-d...@googlegroups.com
Ok, I understand you now.  Yes, I use Spoon and am familiar with the ktr and kjb files.  Thank you.
Reply all
Reply to author
Forward
0 new messages