Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read/write to XML file in data folder
#4
Look at our source code, its on github linked from download page.

We use simplexml, with extended cdata support.

Look at changedata.php for how we save page files.
Or settings for saving website.xml

PHP Code:
$getdata getXml(GSDATAOTHERPATH$file '.xml');
echo 
$getdata->node;

$xml = new SimpleXMLExtended('<?xml version="1.0" encoding="UTF-8"?><item></item>');
$node $xml->addChild('node');
$node->addCData("blahblah");
XMLsave($xmlGSDATAOTHERPATH.$file.'.xml'); 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Read/write to XML file in data folder - by arek1 - 2013-05-17, 22:33:07
RE: Read/write to XML file in data folder - by shawn_a - 2013-05-18, 10:37:32



Users browsing this thread: 1 Guest(s)