Need help getting child nodes

im reading my XML and looping through the child nodes when i move it to another server its stops working, any ideas on why it would stop..here is the XML:\[code\]<masterxmlholder> <userinfo login="user1"> <rde-idea:lastlogin code="0">Wed Dec 31 17:00:00 MST 1969</rde-idea:lastlogin> </userinfo> <userinfo login="user2"> <rde-idea:lastlogin code="4564568522258">Wed Dec 31 17:00:00 MST 1969</rde-idea:lastlogin> </userinfo></masterxmlholder>\[/code\]and here is the loop i'm trying to get to the child with\[code\]foreach ($xml->children() as $user) { echo '<tr><td> Name : </td><td>' . $user['login'] . $user->lastlogin '</td><td>';}echo '</table></center>';\[/code\]Now I can get the name attribute to display from each of the child nodes, however I can NOT get any of the child's inner nodes to displaythis is all trimmed down to give you the idea what im trying to do .. but its basically to see how im trying to access the child nodes and perhaps point out my flaw.thanks for reading.
 
Back
Top