Watch 1 Star 0 Fork 2

sandy / mimvp-sitemap-phpPHPMIT

forked from mimvp / mimvp-sitemap-php 
Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Clone or download
test_xml2html.php 363 Bytes
Copy Edit Web IDE Raw Blame History
homer authored 2017-08-08 22:12 . commit mimvp-sitemap-php
<?php
header("Content-Type: text/html; charset=UTF-8");
$xml = new DOMDocument();
$xml->Load("sitemap.xml");
$xsl = new DOMDocument();
$xsl->Load("sitemap-xml.xsl");
$xslproc = new XSLTProcessor();
$xslproc->importStylesheet($xsl);
echo $xslproc->transformToXML($xml);
$f = fopen('sitem.html', 'w+');
fwrite($f, $xslproc->transformToXML($xml));
fclose($f);
?>

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/sandyme/sitemap-php.git
git@gitee.com:sandyme/sitemap-php.git
sandyme
sitemap-php
mimvp-sitemap-php
master

Help Search