Dear all,I’m trying to transform a XML file UTF-16 encoding to DXL file, but… when files are bigger than just 1MB, the process fails as if the xml structure was not good, and of course it’s not true:
" expected.
It seems like the XMLInputSource gets only part of the content not all.
Here the code:
…
XSLProcessor XSLTransformer = new XSLProcessor(new XML4JLiaison4dom());
StringWriter rw = new StringWriter();
XSLTInputSource XMLSourceIS = new XSLTInputSource(XMLSource);
XSLTInputSource StyleSheetIS = new XSLTInputSource(StyleSheet);
XSLTResultTarget tout = new XSLTResultTarget(rw);
XSLTransformer.process(XMLSourceIS, StyleSheetIS, tout);
…
And here more info about the error:
XSL Error: Could not parse D:\061108014606.xml document!
XSL Error: SAX Exception
" expected
Agent error:
at org.apache.xalan.xslt.XSLTEngineImpl.error(Unknown Source)
at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(Unknown Source)
at org.apache.xalan.xslt.XSLTEngineImpl.process(Unknown Source)
at com.lotus.xsl.XSLProcessor.process(Unknown Source)
at XML.Transform(XML.java:30)
at ProcessMessages.NotesMain(ProcessMessages.java:55)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(NotesThread.java:218)
Any idea?
Thanks,
Sofia.