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...