function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VivoVivo 

Problem with generating XML's

Hi, I am currently trying to create an XML template that gets downloaded when the user goes to the page. It works just fine if I don't use the '<?xml version="1.0" encoding="UTF-8"?>" text within the page. But when I do I get this error:

 

Error: XMLTest line 2, column 6: The processing instruction target matching "[xX][mM][lL]" is not allowed  

Error: The processing instruction target matching "[xX][mM][lL]" is not allowed.

 

 

Is there anyway to make this work? It seems like some others had this problem a long time ago, but I couldn't find any solutions that worked.

 

 

 

<apex:page controller="xmlPage" contentType="application/octet-stream#Run.exml"><?xml version="1.0" encoding="UTF-8"?>
<agentdriver>
</agentdriver>
</apex:page>