Bhavani2007
Programmer
Hi,
I have one xml file like following...
<State CollType="A" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AK" Team="TEAM2"/>
<State CollType="A" Comment="Military addresses" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AE" Team="TEAM2"/>
<State CollType="M" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AK" Team="TEAM3"/>
..........
...........
I need to read this xml file in perl and use this data in that perl class file.
in perl,i will read line by line.
when i read first line then i need to write like:
condition for colltype
if it is 'A' take A_map and put state and team values as key value pairs in that map.
if it if 'M' take M_map and put state and team values as key value pairs.
like so on....
and in perl file i have state and colltype values as input.
first i will check colltype value.
if is 'A' then check for state
if it is 'AK' then A-map.get('AK');then
we will get the team value.
This is my requirement.
I know how to do in java but i dont know how to do in perl?
can anybody help me please?
Thankyou very much in advance.
I have one xml file like following...
<State CollType="A" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AK" Team="TEAM2"/>
<State CollType="A" Comment="Military addresses" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AE" Team="TEAM2"/>
<State CollType="M" Letters="ABCDEFGHIJKLMNOPQRSTUVWXYZ" State="AK" Team="TEAM3"/>
..........
...........
I need to read this xml file in perl and use this data in that perl class file.
in perl,i will read line by line.
when i read first line then i need to write like:
condition for colltype
if it is 'A' take A_map and put state and team values as key value pairs in that map.
if it if 'M' take M_map and put state and team values as key value pairs.
like so on....
and in perl file i have state and colltype values as input.
first i will check colltype value.
if is 'A' then check for state
if it is 'AK' then A-map.get('AK');then
we will get the team value.
This is my requirement.
I know how to do in java but i dont know how to do in perl?
can anybody help me please?
Thankyou very much in advance.