Jump to content

Splitting XML files using ENTITY


Recommended Posts

By: John Pollard - johnnypoll

Splitting XML files using ENTITY

2002-05-08 05:53

My 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...