Hi monks,
I am having an XML like this
sample.xml
<cat>
<channel>CHANNEL123</channelName>
<name>CATEGORY123</name>
<shortName>TopCategory</shortName>
<description>This is TopCategory channel's Category</description>
<shortDescription>This is TopCategory channel's Category</shortDescrip
+tion>
<parentID>0</parentID>
<categoryTags>Vod;Download</categoryTags>
</cat>
<cat>
<channelName>Channel456</channelName>
<name>cat456</name>
<shortName>TopCategory</shortName>
<description>This is TopCategory channel's Category</description>
<shortDescription>This is TopCategory channel's Category</shortDescrip
+tion>
<parentID>0</parentID>
<categoryTags>Vod;Download</categoryTags>
</cat>
<cat>
<channelName>chann678</channelName>
<name>cat678</name>
<shortName>TopCategory</shortName>
<description>This is TopCategory channel's Category</description>
<shortDescription>This is TopCategory channel's Category</shortDescrip
+tion>
<parentID>0</parentID>
<categoryTags>Vod;Download</categoryTags>
</cat>
I am having an XML like this...
I want to create a hash like
CHANNEL123=>CATEGORY123
Channel456=>cat456
chann678=>cat678
That is from each <cat>,I have to make channel=>name...How can i do that?
Thanks in Advance