I have a strange problem when I try to create an XML file with PHP. The problem is that a strange question mark appears at the end of the source code. And I get an error: "Extra content at the end of the document"
I run this script:
<?php header("Content-Type: application/xml"); echo "<?xml version=\"1.0\"?>"; ?> <Module> <ModulePrefs title="Ngram Extractor" author="interedition team" description="Ngram Extractor" scrolling="true"/> <Content type="html"> Test </Content> </Module>
When I open this browser, I get a status error, and the source code looks like this. Note the strange question mark at the end.
<?xml version="1.0"?> <Module> <ModulePrefs title="Ngram Extractor" author="interedition team" description="Ngram Extractor" scrolling="true"/> <Content type="html"> Test </Content> </Module>?
Please, help.
source share