U E D R , A S I H C RSS

XML/PHP

PHP XML

DOM

* --> php xml
~php
$dom = new DomDocument();

$dom->load("articles.xml");

$dom->load("file:///articles.xml");

// If you want to output the XML document to the browser or as standard output, use:
print $dom->saveXML();

// If you want to save it to a file, use:
print $dom->save("newfile.xml");

//
$titles = $dom->getElementsByTagName("title");
foreach($titles as $node) {
   print $node->textContent . " ";
}



Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:27
Processing time 0.0080 sec