I can't quite figure out PHP's XML functions. Given an XML stream like
the one below, how do I get a 2D array?
<xml>
<entry>
<weblogHeadline >
Saddam found in Iraq
</weblogHeadline>
<weblogConten t>
Military forces score a breakthrough today
</weblogContent>
</entry>
<entry>
<weblogHeadline >
Saddam found in Iraq
</weblogHeadline>
<weblogConten t>
Military forces score a breakthrough today
</weblogContent>
</entry>
</xml>
the one below, how do I get a 2D array?
<xml>
<entry>
<weblogHeadline >
Saddam found in Iraq
</weblogHeadline>
<weblogConten t>
Military forces score a breakthrough today
</weblogContent>
</entry>
<entry>
<weblogHeadline >
Saddam found in Iraq
</weblogHeadline>
<weblogConten t>
Military forces score a breakthrough today
</weblogContent>
</entry>
</xml>
Comment