Hi there,
I just started trying to work with xml and I am so LOST! Here is an example of the data I'm working with:
<?xml version='1.0'?>
<QRZDatabase xmlns="http://online.qrz.com">
<Callsign>
<call>KC9LJK</call>
<fname>DREW A</fname>
<name>SMITH</name>
<addr1>2687 19TH DRIVE</addr1>
<addr2>FRIENDSHIP</addr2>
<state>WI</state>
<zip>53934</zip>
<country>USA</country>
<latd>43.97679</latd>
<lond>-89.838601</lond>
<county>Adams</county>
<land>USA</land>
<efdate>2005-05-24</efdate>
<expdate>2015-05-24</expdate>
<p_call>KC9HOK</p_call>
<class>T</class>
<codes>HVIE</codes>
<views>30</views>
<bio>460/2005-07-10 19:28:44</bio>
<image></image>
<serial>1361503</serial>
<moddate>1900-01-25 08:00:31</moddate>
<MSA>0000</MSA>
<AreaCode>608</AreaCode>
<TimeZone>Central</TimeZone>
<GMTOffset>-6</GMTOffset>
<DST>Y</DST>
</Callsign>
<Session>
<Key>492u02e4fe9be73b5d52a1fe1f738eeb2a1c</Key>
<GMTime>Tue Jul 12 01:32:09 2005</GMTime>
</Session>
</QRZDatabase>
My goal is to simply get the data from each tag into a corresponding variable (i.e. $call = <call>). I could also pull the data out of an array but I don't know how to do that.
Any help would be greatly appreciated.
Thanks in advance,
Drew