I need some php code to read this XML, and take the content of the <title>
tags and declare as a $title
variable. And the same for the <tags>
and <content>
as $tags
and $content
variables respectively.
The XML is listed below:
<?xml version="1.0" encoding="ISO-8859-1"?>
<page>
<title>Example title</title>
<tags>example,title,page</tags>
<content>This page has some lovely example content</content>
</page>