Login   Register  
PHP Classes
elePHPant
Icontem

File: test_xml.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vasile Sebastian  >  XmlArray  >  test_xml.php  >  Download  
File: test_xml.php
Role: Example script
Content type: text/plain
Description: example file
Class: XmlArray
Parse an XML document into an array and vice-versa
Author: By
Last change:
Date: 6 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?php
require_once "class_XmlArray.php";

$xmlArray = new XmlArray();
$xmlArray->set_xml("test.xml");
$array $xmlArray->xml2array();

print_r($array);

print 
"------------------------------------------------------------------------------------------------";

$xmlArray->set_name("movies");
$xml $xmlArray->array2xml($array);
print 
$xml;
?>