This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am taking a simple XML file and transforming it into another XML file. It is very basic and very small. However, when I try to transform the XML, I get the following exception: javax.xml.transform.TransformerException: Premature end of file. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:671) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:647) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1054) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1032) Thanks in advance!!!
My problem was a simple one unrelated to XML. I was reading the inputstream and printing the information out (debug steps). This moved the internal pointer to the end of file. Administrator: You can close this topic!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com