2001 JI Open Discussion Posted August 14, 2006 Share Posted August 14, 2006 By: John Pollard - johnnypoll Splitting XML files using ENTITY 2002-05-08 05:53My reports share common sections which I would like to separate out into their own xml files. I have tried to use the ENTITY command in xml to include such a file as follows: <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://www.jasperreports.com/dtds/jasperreport-0.2.4.dtd" [ <!ENTITY transactionReportsTitle SYSTEM "TransactionReportsTitle.xml"> ]> .... <title>&transactionReportsTitle;</title> But I get a nullPointerException: Jasper exception: java.lang.NullPointerException at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at dori.jasper.xml.JRXmlLoader.loadXML(JRXmlLoader.java:302) The exception seems to be triggered by the !ENTITY statement but I have no idea why. Has anyone achieved this breakdown of XML files for Jasper? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now