Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Talend Open Studio for Data Integration

You're reading from  Getting Started with Talend Open Studio for Data Integration

Product type Book
Published in Nov 2012
Publisher Packt
ISBN-13 9781849514729
Pages 320 pages
Edition 1st Edition
Languages
Author (1):
Jonathan Bowen Jonathan Bowen
Profile icon Jonathan Bowen

Table of Contents (22) Chapters

Getting Started with Talend Open Studio for Data Integration
Credits
Foreword
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Knowing Talend Open Studio 2. Working with Talend Open Studio 3. Transforming Files 4. Working with Databases 5. Filtering, Sorting, and Other Processing Techniques 6. Managing Files 7. Job Orchestration 8. Managing Jobs 9. Global Variables and Contexts 10. Worked Examples Installing Sample Jobs and Data Resources Index

Transforming XML to CSV


Let's start with a simple file format transformation. Many modern applications use Extensible Markup Language (XML) formats to get data in and out. Other, often simpler, systems use a Comma Separated Format (CSV). Common, desktop-based systems, such as Excel and Access, have wizards for taking data in the CSV format. We'll work through the process of taking a simple XML file and extracting its data into a comma-separated format.

Before we dive in and actually start to configure a the Studio job, let's look at the data that we want to transform. Our input file is an XML product catalogue named catalogue.xml, which is present in the datafiles of this chapter. Open this in the XML viewer of your choice. You can see that the data is pretty self-explanatory. The file contains data about Stock Keeping Units (SKUs). There are a number of repeating SKU elements, each containing an skuid, skuname, size, colour, and price.

We want to extract this data into a spreadsheet-style...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}