Thread: savexml/loadxml
View Single Post
  #1  
Old 01-21-2010, 09:28 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
savexml/loadxml

Can anyone explain the var formatting that these two functions use? I couldn't figure out how to use savexml, so I created a template xml and used loadxml to echo it, and apparently it uses an array?

XML file:
PHP Code:
<?xml version="1.0"?>
<note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>
temp.obj.loadxml("test.xml");
echo(obj);
PHP Code:
"""Tove,"",""Jani,"",""Reminder,"",""""""Don't forget me this weekend!"""","""
As you can see, it doesn't include the 'to', 'from' and so on. However, if I obj.savexml("test2.xml"), it maintains that format. I just don't know where and how it's storing it...
Reply With Quote