File: xml-test-data.php

Recommend this page to a friend!
  Classes of D Moore  >  XML to Sensible Array  >  xml-test-data.php  >  Download  
File: xml-test-data.php
Role: Application script
Content type: text/plain
Description: Test data
Class: XML to Sensible Array
Parse XML documents into associative arrays
Author: By
Last change:
Date: 12 years ago
Size: 3,978 bytes



Class file image Download
global $xmlbasic, $xml1, $xmltiny, $xmlphoto;

$xmlbasic = <<<EOD
<?xml version="1.0" encoding="UTF-8"?>
        <desc>I am some description</desc>
        <desc>I am another description</desc>


$xmltiny = <<<EOD
<?xml version="1.0" encoding="UTF-8"?>
<outer foo="">
    <desc id="dfdf">I am some description</desc>
    <hoo midi="Chlorians">
        What is this text doing here, floating about?
        Really - I've never seen the like of it?
    <lingus hong="fi" />

$xml1 =<<<EOD
<?xml version="1.0" encoding="UTF-8"?>
<channel id="bbc1" source="BBC" date="12/04/2008">
<desc>Start your day with all the latest news, sport, business and weather from the BBC's Breakfast team.</desc>
<start monkey="proboscis">0600</start>

    <desc>Stinky sock!</desc>
    <age>6 years old</age>

    <desc>Lady sock</desc>
    <age>2 months old</age>

    <insingle>This is just something in single</insingle>

  <programme id="testID" type="ForTheBlind">
<desc>James Martin hosts the mouth-watering food show, and cooks with top chefs Jason Atherton and Lawrence Keogh. Also featuring helpings of Rick Stein and Keith Floyd, plus another omelette challenge.</desc>
<title>Saturday Kitchen</title>

<desc>Jean Christophe Novelli heads to Enfield to meet two young professionals who are too exhausted after a long day at the office to bother with the kitchen. Can Jean Christophe change their minds?</desc>
<title>Take on the Takeaway</title>


$xmlphoto = <<<EOD
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
    <photoset id="72157594149979680" primary="156553525" secret="75296a02b3" server="48" farm="1" photos="4">
        <title>Macho Burgers!</title>
        <description>Goodly burgers from a gentler day</description>
    <photoset id="72057594140072100" primary="149781761" secret="30dd5f6bd0" server="44" farm="1" photos="6">
        <title>Wayland UltraLounge</title>
        <description />
    <photoset id="72057594139405463" primary="149352011" secret="1cb6765ffe" server="51" farm="1" photos="12">
        <description />
    <photoset id="72057594130405244" primary="143637719" secret="8ceaefffb0" server="47" farm="1" photos="5">

        <description>The month of moustaches</description>
    <photoset id="1616821" primary="75357000" secret="82eb6709c3" server="42" farm="1" photos="15">
        <description>Buddytown Office Christmas Party at the City Council Headquarters</description>
    <photoset id="874113" primary="39744154" secret="f6fab5caf8" server="27" farm="1" photos="12">

        <description>Some experimental phots taken by my camera at random via automatic interval signals sent from my laptop.Then experimented with creating some fake lomo texture</description>
    <photoset id="864204" primary="39252049" secret="6fdf6490f8" server="22" farm="1" photos="20">
        <description>the buddytown/ cody's birthday party blowout</description>



For more information send a message to info at phpclasses dot org.