I'm thinking that some strange unprintable characters may have been
introduced before the root element which are not visible in your
editor (perhaps by hand editing with something like DOS editor).<br>
<br>
Try deleting the <br>
"<?xml version="1.0" encoding="ISO-8859-1"?> <xmltemplate>"<br>
line and retyping by hand. Make sure there is no white space before "<?xml" and after "?>"<br>
<br>
<br>
<br>
<br>
Ah, I see you included the source code of the offending file at the end of your email. I think I know your problem:<br>
<br>
After the < ? xml version = "1.0" ? ><br><br><div><span class="gmail_quote">On 8/30/05, <b class="gmail_sendername">Martin Edge</b> <<a href="mailto:medge@dodo.com.au">medge@dodo.com.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey Guys,<br><br>I go to view any HTML file in OpenCMS and I am currently getting the<br>following error:
<br><br>com.opencms.core.CmsException: 21 XML parsing error. Detailed error: Cannot<br>parse XML file "/system/modules/scanline/templates/template.xml".<br>org.xml.sax.SAXParseException: The markup in the document preceding the root
<br>element must be well-formed..<br> at<br>com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:194<br>3)<br> at com.opencms.template.A_CmsXmlContent.parse(A_CmsXmlContent.java:1363)<br> at com.opencms.template.A_CmsXmlContent.parse
(A_CmsXmlContent.java:1338)<br> at com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1012)<br> at<br>com.opencms.template.CmsXmlTemplateFile.<init>(CmsXmlTemplateFile.java:107)<br> at<br>com.opencms.template.CmsXmlTemplate.getOwnTemplateFile
(CmsXmlTemplate.java:3<br>99)<br> at com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:160)<br> at<br>com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)<br> at com.opencms.template.cache.CmsUri.callCanonicalRoot
(CmsUri.java:185)<br> at<br>com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache<br>.java:149)<br> at<br>com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)<br> at com.opencms.launcher.CmsXmlLauncher.launch
(CmsXmlLauncher.java:341)<br> at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br> at com.opencms.core.OpenCms.showResource(OpenCms.java:961)<br> at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java
:310)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)<br> at<br>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
<br>FilterChain.java:200)<br> at<br>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh<br>ain.java:146)<br> at<br>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja<br>va:209)
<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java:596)<br> at<br>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)<br> at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:948)<br> at<br>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja<br>va:144)<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java
:596)<br> at<br>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)<br> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)<br> at<br>org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2358)<br> at<br>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133<br>)<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java
:596)<br> at<br>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.<br>java:118)<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java
:594)<br> at<br>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116<br>)<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java:594)<br>
at<br>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)<br> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)<br> at<br>org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java<br>:127)<br> at<br>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok<br>eNext(StandardPipeline.java:596)<br> at<br>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:433)<br> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)<br> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)<br> at<br>org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:799)<br> at<br>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne<br>ction(Http11Protocol.java:705)<br> at<br>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)<br> at<br>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav<br>a:683)<br> at java.lang.Thread.run(Thread.java:534)<br><br>This system has had another administrator play with it, but I cannot see any
<br>visible damage that would cause this error. I have had to reinstall Tomcat<br>4.1 again, but retained all data within the webapps folder.<br><br>The template it speaks of is fine. The data within it is: c:\program<br>
files\tomcat 4.1\webapps\opencms\export\system\modules\scanline\templates\<br><br><?xml version="1.0" encoding="ISO-8859-1"?> <xmltemplate><br> <template><br> <element name="jsp"/>
<br> </template><br> <!-- Define the stylesheet for the WYSIWYG editor --><br><br><stylesheet>/system/modules/scanline/resources/style.css</stylesheet><br> <elementdef name="jsp">
<br> <class>com.opencms.flex.CmsJspTemplate</class><br> <template>../jsptemplates/template.jsp</template><br> </elementdef><br></xmltemplate><br><br>
Any ideas?<br><br>Thanks<br>Martin<br><br><br><br><br>_______________________________________________<br>This mail is send to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit
<br><a href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br>