|
|
| |
1. Posting a simple example |
|
Reply |
|
|
 Martin Fasani | 2005-09-07 13:15:23 |
<?php
//Include the class
require("classxml2array.php");
//Create the object :
$x = new xml2array("tournaments.xml");
//Fill the array
$result= $x->getResult();
print_r ($result);
?>
Nice class Bastian :) |
| |
2. Re: Posting a simple example |
|
Reply |
|
|
 tiPat | 2006-07-26 12:49:42 - In reply to message 1 from Martin Fasani |
Hi
I get the error :
Notice: Undefined property: xml2array::$root_element in class.xml2array.php on line 96
Can you help me ? |
| |
3. Re: Posting a simple example |
|
Reply |
|
|
 anshu | 2009-12-20 10:42:17 - In reply to message 1 from Martin Fasani |
Thanks Its really nice example.
Can you Also put forward example of array2xml class?
I am using as
require ('class.array2xml.php');
$y = new xml2array($result);
$resulty = $y->getResult();
echo $resulty;
But its NOT working :(
|
|