|
Revision 27, 1.2 kB
(checked in by argh, 3 years ago)
|
Added some docs; Tweaked output.
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
include_once 'patExampleGen/prepend.php'; |
|---|
| 17 |
$exampleGen->displayHead( 'Example' ); |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
require_once $neededFiles['patXMLPretty']; |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
require_once $neededFiles['patErrorManager']; |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
$pretty =& new patXMLPretty; |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
$engine =& $pretty->createEngine( 'Unserializer' ); |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
$pretty->setEngine( $engine ); |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
$highlighted = $pretty->parseFile( 'data/sitemap.xml' ); |
|---|
| 44 |
patErrorManager::isError( $highlighted ) ) { |
|---|
| 45 |
$highlighted->getMessage() ); |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
displaySection( 'Highlighted source', $highlighted ); |
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
$exampleGen->displayFooter(); |
|---|
| 54 |
?> |
|---|
| 55 |
|
|---|