![]() |
xml to variable
hey.
the xml file name is: list.xml which is on http://domain/path/list.xml its code is: Code:
<note> so it will be like this: value of $heading will be 'Reminder' any tutorial for me? plz help me |
Well, if you want to do it in PHP, you could look at this: http://www.w3schools.com/php/php_xml_parser_expat.asp
If you want to do it in vB, you could use the class in includes/class_xml.php, and look at one of the files that uses it for an example, such as includes/adminfunctions_help.php. That class parses xml in to an array. I made this test file which I put in my forum directory (and I put your xml in a file called "test.xml" in the same directory): PHP Code:
The output is: Code:
$heading = ' Reminder ' Hope this helps. |
thank you very much :)
just what i was looking for.. |
All times are GMT. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|