<!DOCTYPE html>
<html  xmlns="http://www.w3.org/1999/xhtml">

<!--
    quick demo of PHP's SimpleXML package (as an example of
    XML tools available in PHP)

    by: Sharon Tuttle
    last modified: 2016-04-20
-->

<head>  
    <title> SimpleXML demo </title>
    <meta charset="utf-8" />

    <link href="http://users.humboldt.edu/smtuttle/styles/normalize.css" 
          type="text/css" rel="stylesheet" />
</head> 

<body> 
    <h1> SimpleXML demo </h1>

    <?php
    $myXml = simplexml_load_file("xml-ex1.xml");

    $to = $myXml->to;
    $from = trim($myXml->from);
    $date = trim($myXml->date);
    ?>

    <p> Trying out PHP package SimpleXML a little - in file 
        <a href="xml-ex1.xml">xml-ex1.xml</a>: </p>
    <ul>
<pre>
        <li> $myXml->to is: [<?= $to ?>] </li>
        <li> trim($myXml->from) is: [<?= $from ?>] </li>
        <li> trim($myXml->date) is: [<?= $date ?>] </li>
</pre>
    </ul> 

    <?php
    require_once("328footer-better.html");
    ?>

</body>
</html>