Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Talend Open Studio for Data Integration

You're reading from   Getting Started with Talend Open Studio for Data Integration This is the complete course for anybody who wants to get to grips with Talend Open Studio for Data Integration. From the basics of transferring data to complex integration processes, it will give you a head start.

Arrow left icon
Product type Paperback
Published in Nov 2012
Publisher Packt
ISBN-13 9781849514729
Length 320 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jonathan Bowen Jonathan Bowen
Author Profile Icon Jonathan Bowen
Jonathan Bowen
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

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 FREE CHAPTER 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

Advanced XML output for complex XML structures


The XML output format we used in the last example was pretty straightforward. Every piece of data is contained within its own XML element; however, it is very common for XML files to be more complex, with subelements being repeated within a parent element, and data items being held in XML attributes rather than in elements.

In this example, we will produce an XML file that contains data about customer orders that have been dispatched. This file will contain the following information:

  • The order ID

  • The order-line ID

  • The product SKU for each line

  • The quantity of each dispatched SKU

  • The dispatch date (in the format yyyy-MM-dd hh:mm)

  • The courier tracking ID (so that customers can track their order)

The XML format we need to adhere to is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<DISPATCH_DOCKET>
<ORDER ID="1000">
<ORDER_LINE ID="1" SKU="123456789" QUANTITY="1" DISPATCHED_DATE="2011-01-01 12:00" TRACKING_ID="ABC12345"/>
&lt...
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 $19.99/month. Cancel anytime