Hi,
I have a XML file which looks like :
-<FileDump>
<Version>1.2.3</Version>
-<Message>
<MsgID>12345</MsgID>
<MsgTime>2012-05-12</MsgTime>
<MsgLang>Cd ABCDEF</MsgLang>
-<Sender>
-<UserInfo>
<Surname>john</Surname>
<Initial>Peter</Initial>
<Email>Peter.john@abc.com</Email>
</UserInfo>
</Sender>
<Source Delivery Type="TO">
-<UserInfo>
<Surname>Doe</Surname>
<Initial>John</Initial>
<Email>john.Doe@abc.com</Email>
</UserInfo>
</Source>
<Source Delivery Type="BCC">
-<UserInfo>
<Surname>Doeeee</Surname>
<Initial>Johnee</Initial>
<Email>johnee.Doeeee@abc.com</Email>
</UserInfo>
</Source>
</Message>
-<Message>
<MsgID>998765</MsgID>
<MsgTime>2012-05-15</MsgTime>
<MsgLang>Cd PQRST</MsgLang>
-<Sender>
-<UserInfo>
<Surname>appa</Surname>
<Initial>Ketan</Initial>
<Email>ketan.appa@abc.com</Email>
</UserInfo>
</Sender>
<Source Delivery Type="TO">
-<UserInfo>
<Surname>duck</Surname>
<Initial>donald</Initial>
<Email>donald.Duck@abc.com</Email>
</UserInfo>
</Source>
</Message>
</FileDump>
From this file I would like the output in ":" delimeter
MsgID:MsgTime:Surname:Initial:Email:Source
I am a beginner for using XML::Twig.
Appreiate any assistance you can provide.
Regards
Kaushal