FOProcessor issuing XML-20108: (Fatal Error) Start of root element expected.
I have written a Java Concurrent Program which obtains InputStreams for the XML and XSL data, then calls the FOProcessor. I am receiving the above noted error. Here is the exerpt of the Java Code along with an excerpt of the .log file. The .log file shows that InputStream data exists. Any help is greatly appreciated.
Code:
// Process Data Template to obtain Wage Notification XML.
this.lfile.writeln("Processing Data Template to obtain Wage Notification XML...... : ", 1);
DataTemplate localDataTemplate = new DataTemplate(paramCpContext, ApplShortName, TemplateName, true);
ArrayList localArrayList = localDataTemplate.getParameters();
localDataTemplate.setParameters(cpParameters);
OutputStream osXML = new ByteArrayOutputStream();
localDataTemplate.setOutput(osXML);
localDataTemplate.processData();