Login   Register  
PHP Classes
elePHPant
Icontem

File: myXML/sample.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tereshchenko Andrey  >  myXML  >  myXML/sample.xml  >  Download  
File: myXML/sample.xml
Role: Auxiliary data
Content type: text/plain
Description: XML example
Class: myXML
DOM/XPath/XSLT implemented in php.
Author: By
Last change: -
Date: 2004-04-26 03:48
Size: 1,549 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="Windows-1251"?>
<?xml-stylesheet href="sample.xsl" type="text/xml"?>
<books>
  <?php global $id; $id = 1; ?>
  <book id="php: return $id++">
    <title><b>Pierre: The Ambiguities</b></title>
    <author><i>Sophocles</i></author>
    <price>9.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>Heart of Darkness</b></title>
    <author><i>Joseph Conrad</i></author>
    <price>12.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>Arrowsmith</b></title>
    <author><i>Sinclair Lewis</i></author>
    <price>8.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>Oedipus Rex</b></title>
    <author><i>Sophocles</i></author>
    <price>8.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>The Secret Sharer and Other Stories</b></title>
    <author><i>Joseph Conrad</i></author>
    <price>13.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>The Republic</b></title>
    <author><i>Plato</i></author>
    <price>12.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>The Republic</b></title>
    <author><i>Plato</i></author>
    <price>15.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>Inside Microsoft Windows CE</b></title>
    <author><i>John Murray</i></author>
    <price>29.99</price>
  </book>
  <book id="php: return $id++">
    <title><b>Pragmatism</b></title>
    <author><i>William James</i></author>
    <price>15.99</price>
  </book>
</books>