Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ATOMWriter.php
LICENSE
Makefile
README
extract-version.sh
package.xml
test.php

README

Exemple :

$xmlWriter = new XMLWriter();
$xmlWriter->openUri('php://output');
$xmlWriter->setIndent(true);

$f = new ATOMWriter($xmlWriter, true);

$f->startFeed('urn:tps:com-idx')
    ->writeStartIndex(1)
    ->writeItemsPerPage(10)
    ->writeTotalResults(100)
    ->writeTitle('Index of /')
    ->writeLink('http://exemple.com/', 'text/xml');

$f->startEntry('urn:tps:com-idx-1')
    ->writeTitle('Data 1')
    ->writeLink('/1.xml', 'text/xml')
    ->writeLink('/1.txt', 'text/plain')
    ->writeContent('Un', 'text', 'fr')
    ->writeCategory('term', '#scheme')
    ->endEntry();
$f->flush();

$f->startEntry('urn:tps:com-idx-2')
    ->writeTitle('Data 2')
    ->writeLink('2.txt', 'text/plain')
    ->writeContent('deux', 'text', 'fr')
    ->endEntry();
$f->flush();

$f->endFeed();
$f->flush();

You can’t perform that action at this time.