Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read XML? Question
#1
Hello, first of i must say that i find Get Simple cms awesome. I started developing plugins recently. I just can't figure out how to read a xml file. I want to subtract from within a channel, certain labels and put them in to variables. Does anyone know how to this? I'm new to the more advanced(i see it that way) php.

Greetings
Reply
#2
Code:
$data = getXML('patch/file.xml');

After that you can use any of SimpleXML’s functions on $data. getXML is a function from the GetSimple core.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
Zegnåt Wrote:
Code:
$data = getXML('patch/file.xml');

After that you can use any of SimpleXML’s functions on $data. getXML is a function from the GetSimple core.

Thanks.
Reply




Users browsing this thread: 1 Guest(s)