troubleshooting Question

XSL FO exception : Document root element is missing

Avatar of pratikbm
pratikbm asked on
Web Languages and StandardsJavaXML
10 Comments3 Solutions681 ViewsLast Modified:
I am trying to use XSL-FO to convert XML files to PDF using a java program
with embedded FOP.
It generates the pdf files alright but whenver XML file is saved with UTF-8 encoding I receive an exception ..
javax.xml.transform.TransformerException: Document root element is missing

If I execute fop from cmd line using same xml and xsl files there are no issues.

I need the XML to be in UTF-8 since it is suppose to have multilangual characters.
Can anyone please help on this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros