I'm sure those steps are documented in the manuals. I'm curious how much XML experience you have, both in general and with DataStage in particular? It can get very... confusing... if this is your first exposure to the Wonderful World of XML.
-craig
"You can never have too many knives" -- Logan Nine Fingers
The best sites to learn about Xpath. XSLT and XML are the w3 websites.
Tutorials will help , but w3 gives you an understanding that surpasses all else ( at least to my knowledge) - since all explanations are detailed and verbose - though not everyone likes it that way . The XML pack reference in datastage is good if you are just starting with XML stages - please inform your managers about the skills gap if you are unfamiliar- I assume you work for an organization that understands timely and open communication.
1. The dashes in your desired output are not part of the actual XML but rather an artifact of your display tool - IE, I assume.
2. Do not worry about all of the formatting your example shows - you format ('pretty print') XML for peoples, not for consumption by other systems. Each XML file is perfectly happy to be a stream of characters, i.e. "one long record".
-craig
"You can never have too many knives" -- Logan Nine Fingers