Login   Register  
PHP Classes
elePHPant
Icontem

Posting a simple example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Adv XML to Array  >  All threads  >  Posting a simple example  >  (Un) Subscribe thread alerts  
Subject:Posting a simple example
Summary:Simple example. Adv XML to Array
Messages:3
Author:Martin Fasani
Date:2005-09-07 13:15:23
Update:2009-12-20 10:42:17
 

  1. Posting a simple example   Reply   Report abuse  
Picture of Martin Fasani
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   Report abuse  
Picture of tiPat
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   Report abuse  
Picture of anshu
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 :(